diff options
Diffstat (limited to 'c/test.cpp')
-rw-r--r-- | c/test.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -16,9 +16,7 @@ struct Test Test(const char* name) : name(name) {} }; -#define CAT(a, b) a##b -#define APPLY(a, ...) a(__VA_ARGS__) -#define TESTS struct APPLY(CAT, tests_, __COUNTER__) +#define TESTS struct UNUSED #define TEST(id) }; struct id : public Test { id() : Test(#id) #define FAIL(...) do { Sprintf(error, __VA_ARGS__); return; } while (0) @@ -226,7 +224,7 @@ TESTS TEST(Fetch) { bool bDone = false; - std::thread{FetchData, &bDone}.detach(); + std::thread{WaitFetchData, &bDone}.detach(); } }; |