at91sam7 example: add signal_test testcase.
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 25 Mar 2010 16:14:35 +0000 (16:14 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 25 Mar 2010 16:14:35 +0000 (16:14 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3272 38d2e660-2303-0410-9eaa-f027e97ec537

examples/at91sam7/at91sam7.c
examples/at91sam7/at91sam7x.mk

index 70e21f9c8554fb96b2ace01cd9bf6245af76d0a8..b8ef86c8b539c7238455ec3a68abc5d4a93c221a 100644 (file)
@@ -50,6 +50,7 @@
 #include <cfg/macros.h>
 
 #include <kern/proc.h>
+#include <kern/signal.h>
 
 #include <cpu/detect.h>
 
@@ -176,7 +177,13 @@ int main(void)
                kfile_printf(&ser_fd.fd, "ProcTest..ok!\n");
        else
                kfile_printf(&ser_fd.fd, "ProcTest..FAIL!\n");
-
+       /*
+        * Run signal test.
+        */
+       if(!signal_testRun())
+               kfile_printf(&ser_fd.fd, "SignalTest..ok!\n");
+       else
+               kfile_printf(&ser_fd.fd, "SignalTest..FAIL!\n");
 
        kputs(AT91SAM7_MSG);
 
index 77e45791d596b2de9d5c8770055a6beb542f5e71..436c4445a6e0a3910019a2c68d6ac177bbf9a41c 100644 (file)
@@ -32,6 +32,7 @@ at91sam7x_CSRC = \
        bertos/kern/coop.c \
        bertos/kern/preempt.c \
        bertos/kern/proc_test.c \
+       bertos/kern/signal_test.c \
        bertos/kern/monitor.c \
        bertos/kern/signal.c \
        #