summaryrefslogtreecommitdiff
path: root/source/test
diff options
context:
space:
mode:
Diffstat (limited to 'source/test')
-rw-r--r--source/test/unittests/thread.test.c18
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);
-}