From: asterix Date: Thu, 10 Sep 2009 09:17:39 +0000 (+0000) Subject: Do signal test if these are enabled. X-Git-Tag: 2.2.0~52 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=60f4de6b7e942fb7ffddfb37aadca141345b0373;p=bertos.git Do signal test if these are enabled. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2916 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/kern/proc_test.c b/bertos/kern/proc_test.c index 28a75877..5668b3f4 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,14 +229,14 @@ int proc_testRun(void) kputs("Priority test successfull.\n"); } - if (!ret_value) - return 0; - else - return ret_value; - priority_fail: kputs("Priority test failed.\n"); - return -1; + ret_value = -1; + +#endif + + return ret_value + }