changeset 49093:0a185d6fafa1

8198379: tools/jimage/JImageListTest.java failing Reviewed-by: alanb Contributed-by: mvala@redhat.com
author alanb
date Mon, 19 Feb 2018 18:43:28 +0000
parents 7f9c3cd11e97
children b417304c811b
files test/jdk/ProblemList.txt test/jdk/tools/jimage/JImageListTest.java
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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"); })