hotspot/test/gc/startup_warnings/TestParNewSerialOld.java
changeset 27898 813ad96387b3
parent 15747 b948d0fb65b0
child 27899 17754211a7ab
--- a/hotspot/test/gc/startup_warnings/TestParNewSerialOld.java	Thu Nov 27 11:09:55 2014 +0100
+++ b/hotspot/test/gc/startup_warnings/TestParNewSerialOld.java	Thu Nov 27 21:02:13 2014 +0100
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+* Copyright (c) 2013, 2024, 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
@@ -24,7 +24,7 @@
 /*
 * @test TestParNewSerialOld
 * @key gc
-* @bug 8006398
+* @bug 8065972
 * @summary Test that the deprecated ParNew+SerialOld combination print a warning message
 * @library /testlibrary
 */
@@ -38,9 +38,9 @@
   public static void main(String args[]) throws Exception {
     ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseParNewGC", "-version");
     OutputAnalyzer output = new OutputAnalyzer(pb.start());
-    output.shouldContain("warning: Using the ParNew young collector with the Serial old collector is deprecated and will likely be removed in a future release");
-    output.shouldNotContain("error");
-    output.shouldHaveExitValue(0);
+    output.shouldContain("It is not possible to combine the ParNew young collector with the Serial old collector.");
+    output.shouldContain("Error");
+    output.shouldHaveExitValue(1);
   }
 
 }