From 763bd4410dec78eb5ab494a7c8f5b09ff920ae50 Mon Sep 17 00:00:00 2001 From: Nick Van Doorn Date: Mon, 8 Apr 2019 15:12:18 -0700 Subject: Remove async support --- readme.md | 4 ---- test-lib.c | 5 ----- test-lib.h | 2 -- 3 files changed, 11 deletions(-) diff --git a/readme.md b/readme.md index 188c10a..4090d8e 100644 --- a/readme.md +++ b/readme.md @@ -22,7 +22,3 @@ int main() { return 0; } ``` - -## TODO - -1. Run `asyncTest` test callbacks in separate thread (fork) diff --git a/test-lib.c b/test-lib.c index ca3c433..d9a3177 100644 --- a/test-lib.c +++ b/test-lib.c @@ -32,8 +32,3 @@ int syncTest(char *testName, char *errMsg, syncTestHandler_t callback) { return status; } } - -void asyncTest(char *testName, char *errMsg, asyncTestHandler_t callback) { - printf("Running %s\n", testName); - callback(printPass, printFail, errMsg); -} diff --git a/test-lib.h b/test-lib.h index 20f772b..75b73f4 100644 --- a/test-lib.h +++ b/test-lib.h @@ -1,10 +1,8 @@ #ifndef TEST_LIB_H #define TEST_LIB_H -typedef void (*asyncTestHandler_t)(void (*pass)(), void (*fail)(char* msg), char* msg); typedef int (*syncTestHandler_t)(); int syncTest(char *testName, char *errMsg, int (*testCallback)()); -void asyncTest(char *testName, char *errMsg, asyncTestHandler_t callback); #endif -- cgit v1.2.3