From a37178ed9c5c48e1e18cd64dcb03927c078ff4de Mon Sep 17 00:00:00 2001 From: asterix Date: Tue, 16 Dec 2008 16:52:42 +0000 Subject: [PATCH] Add first skell of semaphore test. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2047 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/kern/sem_test.c | 66 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 bertos/kern/sem_test.c diff --git a/bertos/kern/sem_test.c b/bertos/kern/sem_test.c new file mode 100644 index 00000000..494af8a8 --- /dev/null +++ b/bertos/kern/sem_test.c @@ -0,0 +1,66 @@ +/** + * \file + * + * + * \brief Semaphore based synchronization services. + * + * \version $Id$ + * \author Daniele Basile + * + */ + +#include "sem.h" + +#include + +Semaphore sem; + +/** + * Run semaphore test + */ +int sem_testRun(void) +{ + return 0; +} + +int sem_testSetup(void) +{ + kdbg_init(); + sem_init(&sem); + return 0; +} + +int sem_testTearDown(void) +{ + sem_release(&sem); + return 0; +} + +TEST_MAIN(sem); \ No newline at end of file -- 2.25.1