summaryrefslogtreecommitdiffstats
path: root/test/sem_test.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-07-30 12:37:20 -0400
committerDavid Robillard <d@drobilla.net>2016-07-30 12:37:20 -0400
commit5467a063eeb551d64cd0b7588d3aa7460328a38d (patch)
tree333b136bd030505e2c03943535c7826c35d74de3 /test/sem_test.cpp
parent4b1cfd2c6debd8a70fa056aca45a66587316a9dc (diff)
downloadraul-5467a063eeb551d64cd0b7588d3aa7460328a38d.tar.gz
raul-5467a063eeb551d64cd0b7588d3aa7460328a38d.tar.bz2
raul-5467a063eeb551d64cd0b7588d3aa7460328a38d.zip
Improve Semaphore test
Diffstat (limited to 'test/sem_test.cpp')
-rw-r--r--test/sem_test.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/sem_test.cpp b/test/sem_test.cpp
index 03c3748..8a0cb45 100644
--- a/test/sem_test.cpp
+++ b/test/sem_test.cpp
@@ -64,5 +64,11 @@ main()
waiter.join();
cout << "[Main] Exiting" << endl;
+ cout << "[Main] Waiting for 1/4 s..." << std::endl;
+ if (sem.timed_wait(250)) {
+ cerr << "error: Spurious wakeup" << std::endl;
+ }
+ cout << "[Main] Done" << std::endl;
+
return 0;
}