brutisso@4612: /* brutisso@4612: * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. brutisso@4612: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. brutisso@4612: * brutisso@4612: * This code is free software; you can redistribute it and/or modify it brutisso@4612: * under the terms of the GNU General Public License version 2 only, as brutisso@4612: * published by the Free Software Foundation. brutisso@4612: * brutisso@4612: * This code is distributed in the hope that it will be useful, but WITHOUT brutisso@4612: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or brutisso@4612: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License brutisso@4612: * version 2 for more details (a copy is included in the LICENSE file that brutisso@4612: * accompanied this code). brutisso@4612: * brutisso@4612: * You should have received a copy of the GNU General Public License version brutisso@4612: * 2 along with this work; if not, write to the Free Software Foundation, brutisso@4612: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. brutisso@4612: * brutisso@4612: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA brutisso@4612: * or visit www.oracle.com if you need additional information or have any brutisso@4612: * questions. brutisso@4612: */ brutisso@4612: brutisso@4612: /* brutisso@4612: * @test TestParNewCMS brutisso@4612: * @key gc brutisso@4612: * @bug 8006398 brutisso@4612: * @summary Test that the combination ParNew+CMS does not print a warning message brutisso@4612: * @library /testlibrary brutisso@4612: */ brutisso@4612: brutisso@4612: import com.oracle.java.testlibrary.OutputAnalyzer; brutisso@4612: import com.oracle.java.testlibrary.ProcessTools; brutisso@4612: brutisso@4612: brutisso@4612: public class TestParNewCMS { brutisso@4612: brutisso@4612: public static void main(String args[]) throws Exception { brutisso@4612: ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseParNewGC", "-XX:+UseConcMarkSweepGC", "-version"); brutisso@4612: OutputAnalyzer output = new OutputAnalyzer(pb.start()); pliden@5939: output.shouldNotContain("deprecated"); brutisso@4612: output.shouldNotContain("error"); brutisso@4612: output.shouldHaveExitValue(0); brutisso@4612: } brutisso@4612: brutisso@4612: }