/hg/release/icedtea-web-1.3: Fixed DeadlockTest and listeners fo...

jvanek at icedtea.classpath.org jvanek at icedtea.classpath.org
Fri Aug 17 04:44:54 PDT 2012


changeset 899ea10955a7 in /hg/release/icedtea-web-1.3
details: http://icedtea.classpath.org/hg/release/icedtea-web-1.3?cmd=changeset;node=899ea10955a7
author: Jiri Vanek <jvanek at redhat.com>
date: Fri Aug 17 13:44:22 2012 +0200

	Fixed DeadlockTest and listeners forwarding


diffstat:

 ChangeLog                                                             |  9 +++++++++
 tests/reproducers/simple/deadlocktest/testcases/DeadLockTestTest.java |  8 ++++----
 tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java          |  2 +-
 3 files changed, 14 insertions(+), 5 deletions(-)

diffs (48 lines):

diff -r 684acbb6c35e -r 899ea10955a7 ChangeLog
--- a/ChangeLog	Wed Aug 15 14:44:14 2012 -0400
+++ b/ChangeLog	Fri Aug 17 13:44:22 2012 +0200
@@ -1,3 +1,12 @@
+2012-08-17  Jiri Vanek  <jvanek at redhat.com>
+
+	* tests/reproducers/simple/deadlocktest/testcases/DeadLockTestTest.java:
+	(testDeadLockTestTerminatedBody) removed tests for killed-process and
+	termination of remaining javas put on correct place.
+	* tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java:
+	(executeBrowser)  stout and stderr listeners forwarded to next method in
+	correct order.
+
 2012-08-14  Danesh Dadachanji  <ddadacha at redhat.com>
 
 	Small addition to NEWS entry and bug annotation indicating the PR975 fix.
diff -r 684acbb6c35e -r 899ea10955a7 tests/reproducers/simple/deadlocktest/testcases/DeadLockTestTest.java
--- a/tests/reproducers/simple/deadlocktest/testcases/DeadLockTestTest.java	Wed Aug 15 14:44:14 2012 -0400
+++ b/tests/reproducers/simple/deadlocktest/testcases/DeadLockTestTest.java	Fri Aug 17 13:44:22 2012 +0200
@@ -84,12 +84,12 @@
         assertDeadlockTestLaunched(pr);
         List<String> after = countJavaInstances();
         ServerAccess.logOutputReprint("java2 " + jnlp + " : " + after.size());
+        killDiff(before, after);
         String ss = "This process is hanging more than 30s. Should be killed";
         Assert.assertFalse("stdout should not contains: " + ss + ", but did", pr.stdout.contains(ss));
-//        Assert.assertTrue(pr.stderr.contains("xception"));, exception is thrown by engine,not by application
-        Assert.assertTrue("testDeadLockTestTerminated should be terminated, but wasn't", pr.wasTerminated);
-        Assert.assertNull("Killed process must have null return value. Have not - ", pr.returnValue);
-        killDiff(before, after);
+//        as we are tryng to terminate process as harmless as possible those two are no longer valid in all cases
+//        Assert.assertTrue("testDeadLockTestTerminated should be terminated, but wasn't", pr.wasTerminated);
+//        Assert.assertNull("Killed process must have null return value. Have not - ", pr.returnValue);
         List<String> afterKill = countJavaInstances();
         ServerAccess.logOutputReprint("java3 " + jnlp + " : " + afterKill.size());
         Assert.assertEquals("assert that just old javas remians", 0, (before.size() - afterKill.size()));
diff -r 684acbb6c35e -r 899ea10955a7 tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java
--- a/tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java	Wed Aug 15 14:44:14 2012 -0400
+++ b/tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java	Fri Aug 17 13:44:22 2012 +0200
@@ -546,7 +546,7 @@
         return executeBrowser(getBrowserParams(), resource);
     }
     public ProcessResult executeBrowser(String resource,ContentReaderListener stdoutl,ContentReaderListener stderrl) throws Exception {
-        return executeBrowser(getBrowserParams(), resource,stderrl,stdoutl);
+        return executeBrowser(getBrowserParams(), resource, stdoutl, stderrl);
     }
 
     /**



More information about the distro-pkg-dev mailing list