diff options
author | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-14 05:05:10 +0400 |
---|---|---|
committer | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-14 05:05:10 +0400 |
commit | 635b579ef297a121d5b9dac093e90d30a7c61832 (patch) | |
tree | 9c825e2bd795a06df65bd5daafc69aa6008a4487 /source/test/unittests | |
parent | b985e0ac007290dd5aa9f01d646acb6ab3f72fb7 (diff) | |
download | kit-635b579ef297a121d5b9dac093e90d30a7c61832.zip |
test
Diffstat (limited to 'source/test/unittests')
-rw-r--r-- | source/test/unittests/thread.test.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/source/test/unittests/thread.test.c b/source/test/unittests/thread.test.c deleted file mode 100644 index fed564b..0000000 --- a/source/test/unittests/thread.test.c +++ /dev/null @@ -1,18 +0,0 @@ -#include "../../kit/thread.h" - -#define KIT_TEST_FILE thread -#include "../../kit_test/test.h" - -static void *test_thread_fn(void *data) { - ptrdiff_t *value = (ptrdiff_t *) data; - return (void *) (*value + 20); -} - -TEST("run thread") { - pthread_t t; - ptrdiff_t value = 22; - pthread_create(&t, NULL, test_thread_fn, &value); - void *result; - pthread_join(t, &result); - REQUIRE((ptrdiff_t) result == 42); -} |