summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-05-08 06:04:15 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-05-08 06:04:15 +0000
commit164f5adaf5a5cb430951c36f6385e870bbb48910 (patch)
tree7a9977997249d48d1f8dac53ad800e42551748f2 /tests
parentd4540ca83882791de2a29909c3545771847c8611 (diff)
downloadATCD-164f5adaf5a5cb430951c36f6385e870bbb48910.tar.gz
*** empty log message ***
Diffstat (limited to 'tests')
-rw-r--r--tests/Reader_Writer_Test.cpp2
-rw-r--r--tests/Timer_Queue_Test.cpp10
2 files changed, 7 insertions, 5 deletions
diff --git a/tests/Reader_Writer_Test.cpp b/tests/Reader_Writer_Test.cpp
index 88c53033730..4469cb31c81 100644
--- a/tests/Reader_Writer_Test.cpp
+++ b/tests/Reader_Writer_Test.cpp
@@ -199,6 +199,8 @@ int main (int argc, char *argv[])
ACE_DEBUG ((LM_DEBUG, " (%t) exiting main thread\n"));
#else
+ ACE_UNUSED_ARG (argc);
+ ACE_UNUSED_ARG (argv);
ACE_ERROR ((LM_ERROR, "threads not supported on this platform\n"));
#endif /* ACE_HAS_THREADS */
ACE_END_TEST;
diff --git a/tests/Timer_Queue_Test.cpp b/tests/Timer_Queue_Test.cpp
index 1a87a88d814..3bb96018147 100644
--- a/tests/Timer_Queue_Test.cpp
+++ b/tests/Timer_Queue_Test.cpp
@@ -27,7 +27,7 @@
#include "test_config.h"
static void
-randomize_array (int array[], size_t size)
+randomize_array (long array[], size_t size)
{
size_t i;
@@ -38,7 +38,7 @@ randomize_array (int array[], size_t size)
for (i = 0; i < size; i++)
{
int index = ACE_OS::rand() % size--;
- int temp = array [index];
+ long temp = array [index];
array [index] = array [size];
array [size] = temp;
}
@@ -48,7 +48,7 @@ randomize_array (int array[], size_t size)
static int max_iterations = ACE_DEFAULT_TIMERS * 100;
// Keep track of the timer ids that were assigned to us.
-static int *timer_ids = 0;
+static long *timer_ids = 0;
class Example_Handler : public ACE_Event_Handler
{
@@ -83,7 +83,7 @@ test_functionality (ACE_Timer_Queue *tq)
ACE_ASSERT (tq->is_empty ());
ACE_ASSERT (ACE_Time_Value::zero == ACE_Time_Value (0));
- int timer_id;
+ long timer_id;
timer_id = tq->schedule (&eh, (const void *) 1,
ACE_OS::gettimeofday ());
@@ -308,7 +308,7 @@ main (int argc, char *argv[])
-1);
ACE_NEW_RETURN (timer_ids,
- int[max_iterations],
+ long[max_iterations],
-1);
for (int i = 0; timer_queues[i].name_ != 0; i++)