From 60f4de6b7e942fb7ffddfb37aadca141345b0373 Mon Sep 17 00:00:00 2001 From: asterix Date: Thu, 10 Sep 2009 09:17:39 +0000 Subject: [PATCH] Do signal test if these are enabled. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2916 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/kern/proc_test.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 + } -- 2.25.1