Mercurial > hg > release > icedtea-web-1.8
changeset 1265:90be136f00b7
Fixing various reproducers
* tests/reproducers/simple/ManifestedJar1/testcases/ManifestedJar1Test.java: fixed check on return value
* tests/reproducers/simple/InformationTitleVendorParser/testcases/InformationTitleVendorParserTest.java: same
author | Jiri Vanek <jvanek@redhat.com> |
---|---|
date | Thu, 16 Jul 2015 12:03:45 +0200 |
parents | 6fa605fbab3a |
children | 26be3170e944 |
files | ChangeLog tests/reproducers/simple/InformationTitleVendorParser/testcases/InformationTitleVendorParserTest.java tests/reproducers/simple/ManifestedJar1/testcases/ManifestedJar1Test.java |
diffstat | 3 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Jul 15 19:15:07 2015 +0200 +++ b/ChangeLog Thu Jul 16 12:03:45 2015 +0200 @@ -1,3 +1,11 @@ +2015-07-16 Jiri Vanek <jvanek@redhat.com> + + Fixing various reproducers + * tests/reproducers/simple/ManifestedJar1/testcases/ManifestedJar1Test.java: + fixed check on return value + * tests/reproducers/simple/InformationTitleVendorParser/testcases/InformationTitleVendorParserTest.java: + same + 2015-07-15 Jiri Vanek <jvanek@redhat.com> Fixing various reproducers
--- a/tests/reproducers/simple/InformationTitleVendorParser/testcases/InformationTitleVendorParserTest.java Wed Jul 15 19:15:07 2015 +0200 +++ b/tests/reproducers/simple/InformationTitleVendorParser/testcases/InformationTitleVendorParserTest.java Thu Jul 16 12:03:45 2015 +0200 @@ -54,7 +54,7 @@ Assert.assertFalse("test" + jnlpName + " stdout should not contain " + s1 + " but did.", pr.stdout.contains(s1)); Assert.assertTrue("testForTitle stderr should contain " + exception + " but did not.", pr.stderr.contains(exception)); Assert.assertFalse(pr.wasTerminated); - Assert.assertEquals((Integer)0, pr.returnValue); + Assert.assertEquals((Integer)1, pr.returnValue); } @Test
--- a/tests/reproducers/simple/ManifestedJar1/testcases/ManifestedJar1Test.java Wed Jul 15 19:15:07 2015 +0200 +++ b/tests/reproducers/simple/ManifestedJar1/testcases/ManifestedJar1Test.java Thu Jul 16 12:03:45 2015 +0200 @@ -184,7 +184,7 @@ ProcessResult pr = server.executeJavawsHeadless(Arrays.asList(new String[]{"-strict"}), "/" + id + ".jnlp"); assertNotManifestedJar1(id, pr); assertNotManifestedJar2(id, pr); - assertNotDead(id, pr); + assertNearlyNotDead(id, pr, 1); Assert.assertTrue(pr.stderr.contains(Translator.R("PTwoMains")) || pr.stdout.contains(Translator.R("PTwoMains"))); }