diff options
Diffstat (limited to 'test/test_thread.c')
-rw-r--r-- | test/test_thread.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/test_thread.c b/test/test_thread.c index 8cfc9f4..ede0f31 100644 --- a/test/test_thread.c +++ b/test/test_thread.c @@ -3,7 +3,8 @@ #undef NDEBUG -#include "zix/thread.h" +#include <zix/status.h> +#include <zix/thread.h> #include <assert.h> #include <string.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; |