summaryrefslogtreecommitdiff
path: root/java/tests
diff options
context:
space:
mode:
authorpjain <pjain@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-11-25 19:36:24 +0000
committerpjain <pjain@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-11-25 19:36:24 +0000
commit89cf769c19052201d29880d8804e7d9c487919f5 (patch)
treeec2315b98827eb1cd83a489ce79f79d623ca8ab2 /java/tests
parent26b47a583975a1b564bb2b59d6dee28efa953f8e (diff)
downloadATCD-89cf769c19052201d29880d8804e7d9c487919f5.tar.gz
Added call to exit when test is done
Diffstat (limited to 'java/tests')
-rw-r--r--java/tests/Reactor/TimerQueueTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/tests/Reactor/TimerQueueTest.java b/java/tests/Reactor/TimerQueueTest.java
index de905a66aca..d0a1ae5a2af 100644
--- a/java/tests/Reactor/TimerQueueTest.java
+++ b/java/tests/Reactor/TimerQueueTest.java
@@ -50,7 +50,7 @@ public class TimerQueueTest implements EventHandler
int i;
// Set a bunch of single timers
- for (i=1; i < n; i++)
+ for (i=1; i <= n; i++)
{
tq.scheduleTimer (th1,
"A-timer-" + new Integer (i),
@@ -58,7 +58,7 @@ public class TimerQueueTest implements EventHandler
}
TimerQueueTest th2 = new TimerQueueTest ();
- for (i=1; i < n; i++)
+ for (i=1; i <= n; i++)
{
tq.scheduleTimer (th2,
"B-timer-" + new Integer (i),
@@ -75,5 +75,6 @@ public class TimerQueueTest implements EventHandler
{
}
tq.cancelTimer (id);
+ System.exit (0);
}
}