X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fproc_test.c;h=7c4cdc86442707a352eb8e64b2bb4d74a240ef25;hb=7a6e7a6b51151ca0c221e004871fc1e4c5748124;hp=ea071a472b2dd226f19f3c048c54ebdbee709e3a;hpb=e62ca0b357f09804d7d894949df44224c9d74bb7;p=bertos.git diff --git a/bertos/kern/proc_test.c b/bertos/kern/proc_test.c index ea071a47..7c4cdc86 100644 --- a/bertos/kern/proc_test.c +++ b/bertos/kern/proc_test.c @@ -38,6 +38,8 @@ #include #include +#include + #include #include @@ -50,7 +52,6 @@ static void proc_test1(void) { kputs("> test1\n"); timer_delay(50); - proc_yield(); } } @@ -83,12 +84,11 @@ int proc_testRun(void) { kputs("> main\n"); timer_delay(93); - proc_yield(); + monitor_report(); } return 0; } -#if UNIT_TEST int proc_testSetup(void) { @@ -109,24 +109,4 @@ int proc_testTearDown(void) return 0; } -#include -#include -#include -#include -#include -#if CONFIG_KERN_PREEMPT - #include - #include -#else - #include - // FIXME: we need to link with the switch asm code too! -#endif -#include -#include -#include -#include -#include - TEST_MAIN(proc); - -#endif // _TEST