Do signal test if these are enabled.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 10 Sep 2009 09:17:39 +0000 (09:17 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 10 Sep 2009 09:17:39 +0000 (09:17 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2916 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/kern/proc_test.c

index 28a758773b2fe62ae9c835a23de9688082db635f..5668b3f40c85d7b2a311812a8dcc7d76e569a432 100644 (file)
@@ -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
+
 }