summaryrefslogtreecommitdiffstats
path: root/test/sem_test.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-07-23 12:46:08 +0200
committerDavid Robillard <d@drobilla.net>2017-07-23 12:47:03 +0200
commit33282f15338051454dff690e0ba07b1fa3503a97 (patch)
tree1e298f7d728afc27fb6b98e249e738fe063ee811 /test/sem_test.cpp
parentf0f8a6193810f72c2c99a8f56aa25be630e5ec5d (diff)
downloadraul-33282f15338051454dff690e0ba07b1fa3503a97.tar.gz
raul-33282f15338051454dff690e0ba07b1fa3503a97.tar.bz2
raul-33282f15338051454dff690e0ba07b1fa3503a97.zip
Make Semaphore non-copyable
Diffstat (limited to 'test/sem_test.cpp')
-rw-r--r--test/sem_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/sem_test.cpp b/test/sem_test.cpp
index 5a04ffa..f44fc5e 100644
--- a/test/sem_test.cpp
+++ b/test/sem_test.cpp
@@ -65,10 +65,10 @@ main()
assert(!sem.timed_wait(std::chrono::milliseconds(100)));
// Check that initial value works correctly
- sem = Raul::Semaphore(2);
- assert(sem.wait());
- assert(sem.wait());
- assert(!sem.try_wait());
+ Raul::Semaphore sem2(2);
+ assert(sem2.wait());
+ assert(sem2.wait());
+ assert(!sem2.try_wait());
return 0;
}