summaryrefslogtreecommitdiff
path: root/lib/libc_r/TEST/test_create.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc_r/TEST/test_create.c')
-rw-r--r--lib/libc_r/TEST/test_create.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/libc_r/TEST/test_create.c b/lib/libc_r/TEST/test_create.c
index 73c95140b15..fbf99549c4f 100644
--- a/lib/libc_r/TEST/test_create.c
+++ b/lib/libc_r/TEST/test_create.c
@@ -18,7 +18,7 @@ void* new_thread(void* arg)
printf("New thread was passed arg address %p\n", arg);
printf("New thread stack at %p\n", &i);
return(NULL);
- PANIC();
+ PANIC("return");
}
int
@@ -26,13 +26,10 @@ main()
{
pthread_t thread;
int i;
- int ret;
printf("Original thread stack at %p\n", &i);
- if ((ret = pthread_create(&thread, NULL, new_thread,
- (void *)0xdeadbeef)))
- DIE(ret, "pthread_create");
- if ((ret = pthread_join(thread, NULL)))
- DIE(ret, "pthread_join");
- return(0);
+ CHECKr(pthread_create(&thread, NULL, new_thread,
+ (void *)0xdeadbeef));
+ CHECKr(pthread_join(thread, NULL));
+ SUCCEED;
}