summaryrefslogtreecommitdiff
path: root/p11-kit/test-rpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'p11-kit/test-rpc.c')
-rw-r--r--p11-kit/test-rpc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/p11-kit/test-rpc.c b/p11-kit/test-rpc.c
index 0ce2c55..8c20a40 100644
--- a/p11-kit/test-rpc.c
+++ b/p11-kit/test-rpc.c
@@ -47,7 +47,9 @@
#include "virtual.h"
#include <sys/types.h>
+#ifdef OS_UNIX
#include <sys/wait.h>
+#endif
#include <assert.h>
#include <string.h>
#include <stdio.h>
@@ -963,6 +965,8 @@ test_simultaneous_functions (void)
p11_mutex_uninit (&delay_mutex);
}
+#ifdef OS_UNIX
+
static void
test_fork_and_reinitialize (void)
{
@@ -1006,6 +1010,8 @@ test_fork_and_reinitialize (void)
teardown_mock_module (rpc_module);
}
+#endif /* OS_UNIX */
+
#include "test-mock.c"
int
@@ -1053,7 +1059,10 @@ main (int argc,
p11_test (test_get_info_stand_in, "/rpc/get-info-stand-in");
p11_test (test_get_slot_list_no_device, "/rpc/get-slot-list-no-device");
p11_test (test_simultaneous_functions, "/rpc/simultaneous-functions");
+
+#ifdef OS_UNIX
p11_test (test_fork_and_reinitialize, "/rpc/fork-and-reinitialize");
+#endif
test_mock_add_tests ("/rpc");