summaryrefslogtreecommitdiff
path: root/p11-kit/tests
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2013-07-23 14:53:53 +0200
committerStef Walter <stef@thewalter.net>2013-07-23 23:06:27 +0200
commitb7cc29a78c3c705374ff25223fe14749ddb076b9 (patch)
tree4d9ec4586d19ed2230f4bdbb2a2e1887f7b254a4 /p11-kit/tests
parent4d04cfdf2ac078cc4a95ff9a145f0045e074470b (diff)
Use simple serial automake test harness
* Add a testing sanity check to see if we're catching errors * Fix a few other testing issues
Diffstat (limited to 'p11-kit/tests')
-rw-r--r--p11-kit/tests/test-deprecated.c1
-rw-r--r--p11-kit/tests/test-init.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/p11-kit/tests/test-deprecated.c b/p11-kit/tests/test-deprecated.c
index 7ea8260..56f1941 100644
--- a/p11-kit/tests/test-deprecated.c
+++ b/p11-kit/tests/test-deprecated.c
@@ -250,6 +250,7 @@ mock_C_Initialize__with_fork (CK_VOID_PTR init_args)
/* Fork during the initialization */
child = fork ();
if (child == 0) {
+ close (1);
nanosleep (&ts, NULL);
exit (66);
}
diff --git a/p11-kit/tests/test-init.c b/p11-kit/tests/test-init.c
index ebc0666..c4fcecb 100644
--- a/p11-kit/tests/test-init.c
+++ b/p11-kit/tests/test-init.c
@@ -73,6 +73,7 @@ mock_C_Initialize__with_fork (CK_VOID_PTR init_args)
/* Fork during the initialization */
child = fork ();
if (child == 0) {
+ close (1);
nanosleep (&ts, NULL);
exit (66);
}