aboutsummaryrefslogtreecommitdiffstats
path: root/tests/jnlp_tests/simple/deadlocktest/srcs
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2012-06-19 12:15:07 +0200
committerJiri Vanek <[email protected]>2012-06-19 12:15:07 +0200
commit7a1099690059f820a37419c1c6e7308689655f35 (patch)
tree47fffb14fb08fc23ee70b3d000d517dedb0e4007 /tests/jnlp_tests/simple/deadlocktest/srcs
parent790ddd6eba1035bd35dd2cc2d1a390a223f20e2f (diff)
rewritten deadlock test
Diffstat (limited to 'tests/jnlp_tests/simple/deadlocktest/srcs')
-rw-r--r--tests/jnlp_tests/simple/deadlocktest/srcs/DeadlockTest.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/jnlp_tests/simple/deadlocktest/srcs/DeadlockTest.java b/tests/jnlp_tests/simple/deadlocktest/srcs/DeadlockTest.java
index c473ef4..4d348b0 100644
--- a/tests/jnlp_tests/simple/deadlocktest/srcs/DeadlockTest.java
+++ b/tests/jnlp_tests/simple/deadlocktest/srcs/DeadlockTest.java
@@ -42,11 +42,15 @@ public class DeadlockTest {
public static void main(String[] args) throws Exception {
long startTime = System.nanoTime() / 1000000l;
System.out.println("Deadlock test started");
+ int i=0;
while (true) {
long now = System.nanoTime() / 1000000l;
- Thread.sleep(10);
+ Thread.sleep(3500);
+ i++;
+ System.out.println(i+" Deadlock sleeping");
if (now - startTime > DEADLOCK_TEST_TIME_OF_LIFE) {
System.out.println("This process is hanging more then "+DEADLOCK_TEST_TIME_OF_LIFE/1000+"s. Should be killed");
+ System.out.flush();
System.exit(5);
}
}