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