From b38510b4769f2c1989218aad18b02e1fef09e236 Mon Sep 17 00:00:00 2001 From: arighi Date: Thu, 25 Mar 2010 16:14:35 +0000 Subject: [PATCH] at91sam7 example: add signal_test testcase. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3272 38d2e660-2303-0410-9eaa-f027e97ec537 --- examples/at91sam7/at91sam7.c | 9 ++++++++- examples/at91sam7/at91sam7x.mk | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) 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 \ # -- 2.25.1