X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=bertos%2Fdrv%2Ftimer_test.c;h=a7839f41ebac382d957914324cec75a38d963189;hb=f81ab81af897093cc762ec92507c38ec453d1845;hp=9c649a31f6321305f55acd8cda8e69b2d7e7ddf0;hpb=111a5049211f2adee08a0e483bfd560f3ee88e14;p=bertos.git diff --git a/bertos/drv/timer_test.c b/bertos/drv/timer_test.c index 9c649a31..a7839f41 100644 --- a/bertos/drv/timer_test.c +++ b/bertos/drv/timer_test.c @@ -131,7 +131,7 @@ static void timer_test_poll(void) int timer_testSetup(void) { IRQ_ENABLE; - wdt_init(7); + wdt_start(7); timer_init(); kdbg_init(); return 0; @@ -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) +#if UNIT_TEST + #include + #include + #include + #include + #include + #include -TEST_MAIN(timer); + TEST_MAIN(timer); +#endif