Drop the magical test macros.
[bertos.git] / bertos / drv / timer_test.c
index 9c649a31f6321305f55acd8cda8e69b2d7e7ddf0..2171db0662960795b58850a38e1ed26d6d5e962b 100644 (file)
@@ -154,12 +154,14 @@ int timer_testTearDown(void)
        return 0;
 }
 
-#include TEST_ONLY(drv/timer.c)
-#include TEST_ONLY(drv/kdebug.c)
-#include TEST_ONLY(mware/event.c)
-#include TEST_ONLY(mware/formatwr.c)
-#include TEST_ONLY(mware/hex.c)
-#include TEST_ONLY(os/hptime.c)
-
-TEST_MAIN(timer);
+#if UNIT_TEST
+       #include <drv/timer.c>
+       #include <drv/kdebug.c>
+       #include <mware/event.c>
+       #include <mware/formatwr.c>
+       #include <mware/hex.c>
+       #include <os/hptime.c>
+
+       TEST_MAIN(timer);
+#endif