summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Semaphore_Test.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/Semaphore_Test.cpp b/tests/Semaphore_Test.cpp
index ac348b74e7b..ad18edbc592 100644
--- a/tests/Semaphore_Test.cpp
+++ b/tests/Semaphore_Test.cpp
@@ -136,8 +136,7 @@ int main (int argc, char *argv[])
test_timeout ();
// Initialize the semaphore to a certain number
- for (i = 0; i < n_semcount; i++)
- s.release ();
+ s.release (n_semcount);
if (ACE_Thread_Manager::instance ()->spawn_n (n_workers,
ACE_THR_FUNC (worker),