diff options
Diffstat (limited to 'test/testsem.c')
-rw-r--r-- | test/testsem.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/testsem.c b/test/testsem.c index f2105a7dd..26c5556f5 100644 --- a/test/testsem.c +++ b/test/testsem.c @@ -21,6 +21,8 @@ #include "test.h"
+#ifdef CH_USE_SEMAPHORES
+
#define ALLOWED_DELAY MS2ST(5)
static Semaphore sem1;
@@ -100,3 +102,5 @@ const struct testcase testsem2 = { sem2_teardown,
sem2_execute
};
+
+#endif /* CH_USE_SEMAPHORES */
|