From: asterix Date: Tue, 16 Dec 2008 16:52:42 +0000 (+0000) Subject: Add first skell of semaphore test. X-Git-Tag: 2.1.0~635 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=a37178ed9c5c48e1e18cd64dcb03927c078ff4de;p=bertos.git Add first skell of semaphore test. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2047 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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