summaryrefslogtreecommitdiffstats
path: root/test/unit/ticker.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/ticker.c')
-rw-r--r--test/unit/ticker.c27
1 files changed, 12 insertions, 15 deletions
diff --git a/test/unit/ticker.c b/test/unit/ticker.c
index e737020..e5790a3 100644
--- a/test/unit/ticker.c
+++ b/test/unit/ticker.c
@@ -1,9 +1,10 @@
#include "test/jemalloc_test.h"
-TEST_BEGIN(test_ticker_tick)
-{
-#define NREPS 2
-#define NTICKS 3
+#include "jemalloc/internal/ticker.h"
+
+TEST_BEGIN(test_ticker_tick) {
+#define NREPS 2
+#define NTICKS 3
ticker_t ticker;
int32_t i, j;
@@ -26,9 +27,8 @@ TEST_BEGIN(test_ticker_tick)
}
TEST_END
-TEST_BEGIN(test_ticker_ticks)
-{
-#define NTICKS 3
+TEST_BEGIN(test_ticker_ticks) {
+#define NTICKS 3
ticker_t ticker;
ticker_init(&ticker, NTICKS);
@@ -45,9 +45,8 @@ TEST_BEGIN(test_ticker_ticks)
}
TEST_END
-TEST_BEGIN(test_ticker_copy)
-{
-#define NTICKS 3
+TEST_BEGIN(test_ticker_copy) {
+#define NTICKS 3
ticker_t ta, tb;
ticker_init(&ta, NTICKS);
@@ -66,11 +65,9 @@ TEST_BEGIN(test_ticker_copy)
TEST_END
int
-main(void)
-{
-
- return (test(
+main(void) {
+ return test(
test_ticker_tick,
test_ticker_ticks,
- test_ticker_copy));
+ test_ticker_copy);
}