diff options
Diffstat (limited to 'test/test_thread.c')
-rw-r--r-- | test/test_thread.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/test_thread.c b/test/test_thread.c index 8cfc9f4..09edde6 100644 --- a/test/test_thread.c +++ b/test/test_thread.c @@ -3,6 +3,7 @@ #undef NDEBUG +#include "zix/status.h" #include "zix/thread.h" #include <assert.h> @@ -32,8 +33,12 @@ main(int argc, char** argv) SharedData data = {argc + (int)strlen(argv[0]), 0}; - assert(!zix_thread_create(&thread, 128, thread_func, &data)); - assert(!zix_thread_join(thread)); + ZixStatus st = zix_thread_create(&thread, 128, thread_func, &data); + assert(!st); + + st = zix_thread_join(thread); + assert(!st); + assert(data.output == data.input * 7); return 0; |