summaryrefslogtreecommitdiff
path: root/tests/self3.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/self3.c')
-rw-r--r--tests/self3.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/self3.c b/tests/self3.c
index 17d5ed3..5cc8296 100644
--- a/tests/self3.c
+++ b/tests/self3.c
@@ -23,11 +23,15 @@ main()
int rc;
pthread_t t[2];
- rc = pthread_create(&t[0], NULL, entry, (void *) 1);
- assert(rc == 0);
+ if (pthread_create(&t[0], NULL, entry, (void *) 1) != 0)
+ {
+ return 1;
+ }
- rc = pthread_create(&t[1], NULL, entry, (void *) 2);
- assert(rc == 0);
+ if (pthread_create(&t[1], NULL, entry, (void *) 2) != 0)
+ {
+ return 1;
+ }
Sleep(2000);
return 0;