8198379: tools/jimage/JImageListTest.java failing
authoralanb
Mon, 19 Feb 2018 18:43:28 +0000
changeset 48914 0a185d6fafa1
parent 48913 7f9c3cd11e97
child 48915 b417304c811b
8198379: tools/jimage/JImageListTest.java failing Reviewed-by: alanb Contributed-by: mvala@redhat.com
test/jdk/ProblemList.txt
test/jdk/tools/jimage/JImageListTest.java
--- 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"); })