summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-04-24 06:53:47 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-04-24 06:53:47 +0000
commit3ab746963261da1f1124840f85ed017415ff17bd (patch)
treec1acb300f2a465230e90f1cdadd5d01db9c1b8bd /tests
parent16c1aab36664d4dff18471246aa44044a09e4eff (diff)
downloadATCD-3ab746963261da1f1124840f85ed017415ff17bd.tar.gz
*** empty log message ***
Diffstat (limited to 'tests')
-rw-r--r--tests/Timer_Queue_Test.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/Timer_Queue_Test.cpp b/tests/Timer_Queue_Test.cpp
index d08b8518f9c..10e066a0204 100644
--- a/tests/Timer_Queue_Test.cpp
+++ b/tests/Timer_Queue_Test.cpp
@@ -28,13 +28,11 @@
static void
randomize_array (int array[], size_t size)
{
- size_t i;
-
ACE_OS::srand (ACE_OS::time (0L));
// Randomize the array.
- for (i = 0; i < size; i++)
+ for (size_t i = 0; i < size; i++)
{
int index = ACE_OS::rand() % size--;
int temp = array [index];
@@ -235,7 +233,7 @@ test_performance (ACE_Timer_Queue *tq,
timer.start ();
- for (i = max_iterations - 1; i >= 0; i--)
+ for (i = 0; i < max_iterations; i++)
tq->cancel (timer_ids[i]);
ACE_ASSERT (tq->is_empty ());