# HG changeset patch # User alanb # Date 1519065808 0 # Node ID 0a185d6fafa1fdae27411a9af62368c6dab07f05 # Parent 7f9c3cd11e9730e21105f3990d79a74338e54277 8198379: tools/jimage/JImageListTest.java failing Reviewed-by: alanb Contributed-by: mvala@redhat.com diff -r 7f9c3cd11e97 -r 0a185d6fafa1 test/jdk/ProblemList.txt --- 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 ############################################################################ diff -r 7f9c3cd11e97 -r 0a185d6fafa1 test/jdk/tools/jimage/JImageListTest.java --- 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 entries = Stream.of(lines) .filter(s -> { return !s.startsWith("Module: ") && !s.startsWith("Offset"); })