X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fproc_test.c;h=7573e802a726a8d705e0bd94336e72617a1d3c19;hb=52e3ef495747fbf882c1d64ac1b55cb13034f509;hp=28a758773b2fe62ae9c835a23de9688082db635f;hpb=b0f273ad7fe2dd79271188a565066082b90ef35a;p=bertos.git diff --git a/bertos/kern/proc_test.c b/bertos/kern/proc_test.c index 28a75877..7573e802 100644 --- a/bertos/kern/proc_test.c +++ b/bertos/kern/proc_test.c @@ -195,7 +195,7 @@ int proc_testRun(void) ret_value = -1; } - +#if CONFIG_KERN_SIGNALS // test process priority // main process must have the higher priority to check signals received proc_setPri(proc_current(), 10); @@ -229,16 +229,17 @@ int proc_testRun(void) kputs("Priority test successfull.\n"); } - if (!ret_value) - return 0; - else - return ret_value; + return ret_value; priority_fail: kputs("Priority test failed.\n"); return -1; -} +#endif + + return ret_value; + +} int proc_testSetup(void) {