From: arighi Date: Thu, 25 Mar 2010 16:14:35 +0000 (+0000) Subject: at91sam7 example: add signal_test testcase. X-Git-Tag: 2.5.0~631 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=b38510b4769f2c1989218aad18b02e1fef09e236;p=bertos.git at91sam7 example: add signal_test testcase. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3272 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/examples/at91sam7/at91sam7.c b/examples/at91sam7/at91sam7.c index 70e21f9c..b8ef86c8 100644 --- a/examples/at91sam7/at91sam7.c +++ b/examples/at91sam7/at91sam7.c @@ -50,6 +50,7 @@ #include #include +#include #include @@ -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); diff --git a/examples/at91sam7/at91sam7x.mk b/examples/at91sam7/at91sam7x.mk index 77e45791..436c4445 100644 --- a/examples/at91sam7/at91sam7x.mk +++ b/examples/at91sam7/at91sam7x.mk @@ -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 \ #