X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftesting.h;h=2e4bf054b3855ea9717a6e08d8e3d1aa08b2991c;hb=72a76347831a848e6722d9147297a1e03c4c01d8;hp=0c415e48909f96db0d8844e3f422cdd7325d86a1;hpb=e20c6c14a4a72acad60705af1165519599175750;p=collectd.git diff --git a/src/testing.h b/src/testing.h index 0c415e48..2e4bf054 100644 --- a/src/testing.h +++ b/src/testing.h @@ -24,6 +24,9 @@ * Florian octo Forster */ +#ifndef TESTING_H +#define TESTING_H 1 + #include static int fail_count__ = 0; @@ -33,7 +36,7 @@ static int check_count__ = 0; # define DBL_PRECISION 1e-12 #endif -#define DEF_TEST(func) static int test_##func () +#define DEF_TEST(func) static int test_##func (void) #define RUN_TEST(func) do { \ int status; \ @@ -109,3 +112,5 @@ static int check_count__ = 0; status_ = (long) (expr); \ OK1(status_ == 0L, #expr); \ } while (0) + +#endif /* TESTING_H */