< prev index next >
test/jdk/tools/jpackage/share/JavaOptionsEqualsTest.java
Print this page
rev 57304 : 8235625: [TESTBUG] tools/jpackage/share/JavaOptionsEqualsTest.java fails with debug VMs
Reviewed-by:
@@ -79,11 +79,11 @@
String output = Files.readString(outfile.toPath());
System.out.println("App output:");
System.out.print(output);
String[] result = JPackageHelper.splitAndFilter(output);
- if (result.length != 4) {
+ if (result.length < 4) {
throw new AssertionError(
"Unexpected number of lines: " + result.length
+ " - output: " + output);
}
@@ -99,15 +99,15 @@
if (!result[1].startsWith(nextWarning)) {
throw new AssertionError("Unexpected result[1]: " + result[1]);
}
- if (!result[2].trim().endsWith("jpackage test application")) {
+ if (!result[result.length - 2].trim().endsWith("jpackage test application")) {
throw new AssertionError("Unexpected result[2]: " + result[2]);
}
- if (!result[3].trim().equals("args.length: 0")) {
+ if (!result[result.length - 1].trim().equals("args.length: 0")) {
throw new AssertionError("Unexpected result[3]: " + result[3]);
}
}
public static void main(String[] args) throws Exception {
< prev index next >