8198379: tools/jimage/JImageListTest.java failing
Reviewed-by: alanb
Contributed-by: mvala@redhat.com
--- a/test/jdk/ProblemList.txt Mon Feb 19 13:26:41 2018 +0000
+++ b/test/jdk/ProblemList.txt Mon Feb 19 18:43:28 2018 +0000
@@ -465,7 +465,6 @@
tools/launcher/FXLauncherTest.java 8068049 linux-all,macosx-all
tools/jimage/JImageExtractTest.java 8170120 generic-all
-tools/jimage/JImageListTest.java 8170120 generic-all
############################################################################
--- a/test/jdk/tools/jimage/JImageListTest.java Mon Feb 19 13:26:41 2018 +0000
+++ b/test/jdk/tools/jimage/JImageListTest.java Mon Feb 19 18:43:28 2018 +0000
@@ -57,7 +57,7 @@
.map(s -> s.substring(s.indexOf(':') + 1).trim())
.collect(Collectors.toList());
assertTrue(modules.size() > 0, "Image contains at least one module.");
- assertTrue(modules.indexOf("java.base") > 0, "Module java.base found.");
+ assertTrue(modules.contains("java.base"), "Module java.base found.");
});
}
@@ -88,7 +88,7 @@
.map(s -> s.substring(s.indexOf(':') + 1).trim())
.collect(Collectors.toList());
assertTrue(modules.size() > 0, "Image contains at least one module.");
- assertTrue(modules.indexOf("java.base") > 0, "Module java.base found.");
+ assertTrue(modules.contains("java.base"), "Module java.base found.");
Set<String> entries = Stream.of(lines)
.filter(s -> { return !s.startsWith("Module: ") && !s.startsWith("Offset"); })