summaryrefslogtreecommitdiff
path: root/server/src/semaphore.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/semaphore.cc')
-rw-r--r--server/src/semaphore.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/server/src/semaphore.cc b/server/src/semaphore.cc
index e5f1f31..51a20e5 100644
--- a/server/src/semaphore.cc
+++ b/server/src/semaphore.cc
@@ -45,3 +45,18 @@ void Semaphore::wait()
{
sem_wait(&semaphore);
}
+
+#ifdef TEST_SEMAPHORE
+//deps:
+//cflags: -I.. $(PTHREAD_CFLAGS)
+//libs: $(PTHREAD_LIBS)
+#include <test.h>
+
+TEST_BEGIN;
+
+// TODO: Put some testcode here (see test.h for usable macros).
+TEST_TRUE(false, "No tests yet!");
+
+TEST_END;
+
+#endif/*TEST_SEMAPHORE*/