changeset 12968:27cd39c61646

Applying fix for JDK-8176471
author fparain
date Fri, 28 Apr 2017 12:35:18 -0400
parents c031bb257839
children 1cb1c8adad0f
files test/runtime/modules/IgnoreModulePropertiesTest.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/runtime/modules/IgnoreModulePropertiesTest.java	Fri Apr 28 09:43:04 2017 -0400
+++ b/test/runtime/modules/IgnoreModulePropertiesTest.java	Fri Apr 28 12:35:18 2017 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -44,7 +44,7 @@
         ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
             "-D" + prop + "=" + value, "-version");
         OutputAnalyzer output = new OutputAnalyzer(pb.start());
-        output.shouldContain("java version ");
+        output.shouldContain(" version ");
         output.shouldHaveExitValue(0);
 
         // Ensure that the property and its value aren't available.