diff options
Diffstat (limited to 'tests/self2.c')
-rw-r--r-- | tests/self2.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/self2.c b/tests/self2.c index 76d7b71..51cc129 100644 --- a/tests/self2.c +++ b/tests/self2.c @@ -23,9 +23,13 @@ main() int rc; pthread_t t; - rc = pthread_create(&t, NULL, entry, NULL); - assert(rc == 0); + if (pthread_create(&t, NULL, entry, NULL) != 0) + { + return 1; + } Sleep(2000); + + /* Success. */ return 0; } |