Rename file to messages.
[bertos.git] / bertos / kern / proc_test.c
index 28a758773b2fe62ae9c835a23de9688082db635f..7573e802a726a8d705e0bd94336e72617a1d3c19 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,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)
 {