summaryrefslogtreecommitdiffstats
path: root/test/sem_test.cpp
diff options
context:
space:
mode:
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;
}