mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-12 12:14:06 +02:00
Fix test building on win32
This commit is contained in:
@@ -25,7 +25,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#ifdef HAVE_SYS_WAIT_H
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "gdbus-tests.h"
|
#include "gdbus-tests.h"
|
||||||
|
|
||||||
@@ -95,8 +97,10 @@ test_connection_flush (void)
|
|||||||
&exit_status,
|
&exit_status,
|
||||||
&error);
|
&error);
|
||||||
g_assert_no_error (error);
|
g_assert_no_error (error);
|
||||||
|
#ifdef HAVE_SYS_WAIT_H
|
||||||
g_assert (WIFEXITED (exit_status));
|
g_assert (WIFEXITED (exit_status));
|
||||||
g_assert_cmpint (WEXITSTATUS (exit_status), ==, 0);
|
g_assert_cmpint (WEXITSTATUS (exit_status), ==, 0);
|
||||||
|
#endif
|
||||||
g_assert (ret);
|
g_assert (ret);
|
||||||
|
|
||||||
timeout_mainloop_id = g_timeout_add (1000, test_connection_flush_on_timeout, GUINT_TO_POINTER (n));
|
timeout_mainloop_id = g_timeout_add (1000, test_connection_flush_on_timeout, GUINT_TO_POINTER (n));
|
||||||
|
Reference in New Issue
Block a user