aboutsummaryrefslogtreecommitdiff
path: root/test/main.c
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-08-08 12:07:34 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-08-08 12:07:34 +0200
commite73a9e714f86e34ede60da3f4ccdecb91c31983e (patch)
tree9c61901c1440d841569aa7608e136ead7658f2c9 /test/main.c
parentc4fa2aff45e974d7042410587c6c9ae2487f3f5d (diff)
server: Overengineered hashtable property test
Diffstat (limited to 'test/main.c')
-rw-r--r--test/main.c7
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;
}