8078435: [TESTBUG] runtime/CommandLine/TestVMOptions.java fails when running with an OpenJDK build
authorctornqvi
Thu, 23 Apr 2015 12:46:42 -0700
changeset 30285 2ca5f3a28b0f
parent 30282 6bc6bcda7c91
child 30286 7e076dc01291
8078435: [TESTBUG] runtime/CommandLine/TestVMOptions.java fails when running with an OpenJDK build Reviewed-by: mseledtsov, hseigel
hotspot/test/runtime/CommandLine/TestVMOptions.java
--- a/hotspot/test/runtime/CommandLine/TestVMOptions.java	Thu Apr 23 17:42:06 2015 +0200
+++ b/hotspot/test/runtime/CommandLine/TestVMOptions.java	Thu Apr 23 12:46:42 2015 -0700
@@ -46,7 +46,7 @@
     pb = ProcessTools.createJavaProcessBuilder(
         "-XX:-PrintVMOptions", "-version");
     output = new OutputAnalyzer(pb.start());
-    output.shouldContain("java version");
+    output.shouldMatch("(openjdk|java)\\sversion");
 
     File dir = new File(System.getProperty("test.src", "."));
     File file = new File(dir, "flagfile.txt");