summaryrefslogtreecommitdiff
path: root/tests/Handle_Set_Test.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1996-11-18 03:56:19 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1996-11-18 03:56:19 +0000
commit7bb925dd16296885ea65ec8f73e3ce09047bfcd9 (patch)
treef8913a7ba038ec752e3d98e49b18950a374a85a9 /tests/Handle_Set_Test.cpp
parentc02747c251c74f4abcf638ba7659ba4f87b7f45c (diff)
downloadATCD-7bb925dd16296885ea65ec8f73e3ce09047bfcd9.tar.gz
ywhoopie!!
More new stuff, more things will break!! I have no idea about this file. Heck, I am not even Doug!
Diffstat (limited to 'tests/Handle_Set_Test.cpp')
-rw-r--r--tests/Handle_Set_Test.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/Handle_Set_Test.cpp b/tests/Handle_Set_Test.cpp
index 7232fa85ebf..94b467b692e 100644
--- a/tests/Handle_Set_Test.cpp
+++ b/tests/Handle_Set_Test.cpp
@@ -24,12 +24,12 @@
#define IS_ODD(X) (((X) & 1) != 0)
-void
+static void
run_test (int count)
{
int duplicates = 0;
- int sets = 0;
- int clears = 0;
+ int sets = 0;
+ int clears = 0;
ACE_Handle_Set handle_set;
@@ -37,22 +37,22 @@ run_test (int count)
for (int i = 0; i < count; i++)
{
- int i = int (ACE_OS::rand () % ACE_Handle_Set::MAXSIZE);
+ int j = int (ACE_OS::rand () % ACE_Handle_Set::MAXSIZE);
- if (IS_ODD (i))
+ if (IS_ODD (j))
{
- if (handle_set.is_set ((ACE_HANDLE) i))
+ if (handle_set.is_set ((ACE_HANDLE) j))
duplicates++;
- handle_set.set_bit ((ACE_HANDLE) i);
+ handle_set.set_bit ((ACE_HANDLE) j);
sets++;
}
else
{
- if (handle_set.is_set ((ACE_HANDLE) i))
+ if (handle_set.is_set ((ACE_HANDLE) j))
duplicates--;
- handle_set.clr_bit ((ACE_HANDLE) i);
+ handle_set.clr_bit ((ACE_HANDLE) j);
clears++;
}
}