2013-03-27 13:49:34 -04:00
|
|
|
$OpenBSD: patch-gio_tests_file_c,v 1.4 2013/03/27 17:49:34 ajacoutot Exp $
|
2012-10-12 16:52:04 -04:00
|
|
|
|
|
|
|
XXX why isn't this working with kqueue?
|
|
|
|
push upstream when the kqueue patch is committed there
|
|
|
|
|
2013-03-27 13:49:34 -04:00
|
|
|
--- gio/tests/file.c.orig Tue Mar 26 11:03:40 2013
|
|
|
|
+++ gio/tests/file.c Tue Mar 26 11:04:53 2013
|
|
|
|
@@ -427,11 +427,12 @@ test_create_delete (gconstpointer d)
|
2012-10-12 16:52:04 -04:00
|
|
|
data->monitor = g_file_monitor_file (data->file, 0, NULL, &error);
|
|
|
|
g_assert_no_error (error);
|
|
|
|
|
|
|
|
- /* This test doesn't work with GPollFileMonitor, because it assumes
|
|
|
|
- * that the monitor will notice a create immediately followed by a
|
|
|
|
- * delete, rather than coalescing them into nothing.
|
2012-11-13 11:34:59 -05:00
|
|
|
+ /* This test doesn't work with GPollFileMonitor nor GKqueueFileMonitor,
|
2012-10-12 16:52:04 -04:00
|
|
|
+ * because it assumes that the monitor will notice a create immediately
|
|
|
|
+ * followed by a delete, rather than coalescing them into nothing.
|
|
|
|
*/
|
|
|
|
- if (!strcmp (G_OBJECT_TYPE_NAME (data->monitor), "GPollFileMonitor"))
|
|
|
|
+ if ((!strcmp (G_OBJECT_TYPE_NAME (data->monitor), "GPollFileMonitor")) ||
|
2012-11-12 05:19:39 -05:00
|
|
|
+ (!strcmp (G_OBJECT_TYPE_NAME (data->monitor), "GKqueueFileMonitor")))
|
2012-10-12 16:52:04 -04:00
|
|
|
{
|
2013-03-27 13:49:34 -04:00
|
|
|
g_print ("skipping test for this GFileMonitor implementation");
|
2012-10-12 16:52:04 -04:00
|
|
|
goto skip;
|