50216fe525
*huge* thank to landry@ for running a bulk with this diff and the few others that are going to be committed and for informing me of the breakage that needed some love.
25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
$OpenBSD: patch-gio_tests_file_c,v 1.4 2013/03/27 17:49:34 ajacoutot Exp $
|
|
|
|
XXX why isn't this working with kqueue?
|
|
push upstream when the kqueue patch is committed there
|
|
|
|
--- 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)
|
|
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.
|
|
+ /* This test doesn't work with GPollFileMonitor nor GKqueueFileMonitor,
|
|
+ * 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")) ||
|
|
+ (!strcmp (G_OBJECT_TYPE_NAME (data->monitor), "GKqueueFileMonitor")))
|
|
{
|
|
g_print ("skipping test for this GFileMonitor implementation");
|
|
goto skip;
|