projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Treewide: cleanup whitespace
[collectd.git]
/
src
/
testing.h
diff --git
a/src/testing.h
b/src/testing.h
index
0c415e4
..
2e4bf05
100644
(file)
--- a/
src/testing.h
+++ b/
src/testing.h
@@
-24,6
+24,9
@@
* Florian octo Forster <octo at collectd.org>
*/
* Florian octo Forster <octo at collectd.org>
*/
+#ifndef TESTING_H
+#define TESTING_H 1
+
#include <inttypes.h>
static int fail_count__ = 0;
#include <inttypes.h>
static int fail_count__ = 0;
@@
-33,7
+36,7
@@
static int check_count__ = 0;
# define DBL_PRECISION 1e-12
#endif
# 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; \
#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)
status_ = (long) (expr); \
OK1(status_ == 0L, #expr); \
} while (0)
+
+#endif /* TESTING_H */