diff options
Diffstat (limited to 'test/main.c')
-rw-r--r-- | test/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/main.c b/test/main.c index ebfe3da..5c0656c 100644 --- a/test/main.c +++ b/test/main.c @@ -27,9 +27,9 @@ static void report_failure(const char *name, clock_t taken) { #define RUN_TEST(name) do { \ atomic_flag_clear(&test_framework_assertion_failed); \ - clock_t start_ = clock(); \ - int ret_ = TEST(name)(); \ - clock_t diff_ = clock() - start_; \ + const clock_t start_ = clock(); \ + const int ret_ = TEST(name)(); \ + const clock_t diff_ = clock() - start_; \ if (ret_ == 0 && !atomic_flag_test_and_set(&test_framework_assertion_failed)) { \ report_success(STR(name), diff_); \ } else { \ @@ -39,6 +39,7 @@ static void report_failure(const char *name, clock_t taken) { } while (0) static int run_tests(void) { + RUN_TEST(hashtable_unit1); RUN_TEST(hashtable); return 0; } |