Thu, 18 Jul 2013 03:38:10 -0700
Added tag jdk8-b99 for changeset 81b6cb70717c
brutisso@4612 | 1 | /* |
brutisso@4612 | 2 | * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
brutisso@4612 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
brutisso@4612 | 4 | * |
brutisso@4612 | 5 | * This code is free software; you can redistribute it and/or modify it |
brutisso@4612 | 6 | * under the terms of the GNU General Public License version 2 only, as |
brutisso@4612 | 7 | * published by the Free Software Foundation. |
brutisso@4612 | 8 | * |
brutisso@4612 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
brutisso@4612 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
brutisso@4612 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
brutisso@4612 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
brutisso@4612 | 13 | * accompanied this code). |
brutisso@4612 | 14 | * |
brutisso@4612 | 15 | * You should have received a copy of the GNU General Public License version |
brutisso@4612 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
brutisso@4612 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
brutisso@4612 | 18 | * |
brutisso@4612 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
brutisso@4612 | 20 | * or visit www.oracle.com if you need additional information or have any |
brutisso@4612 | 21 | * questions. |
brutisso@4612 | 22 | */ |
brutisso@4612 | 23 | |
brutisso@4612 | 24 | /* |
brutisso@4612 | 25 | * @test TestG1 |
brutisso@4612 | 26 | * @key gc |
brutisso@4612 | 27 | * @bug 8006398 |
brutisso@4612 | 28 | * @summary Test that the G1 collector does not print a warning message |
brutisso@4612 | 29 | * @library /testlibrary |
brutisso@4612 | 30 | */ |
brutisso@4612 | 31 | |
brutisso@4612 | 32 | import com.oracle.java.testlibrary.OutputAnalyzer; |
brutisso@4612 | 33 | import com.oracle.java.testlibrary.ProcessTools; |
brutisso@4612 | 34 | |
brutisso@4612 | 35 | public class TestG1 { |
brutisso@4612 | 36 | |
brutisso@4612 | 37 | public static void main(String args[]) throws Exception { |
brutisso@4612 | 38 | ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseG1GC", "-version"); |
brutisso@4612 | 39 | OutputAnalyzer output = new OutputAnalyzer(pb.start()); |
brutisso@4612 | 40 | output.shouldNotContain("warning"); |
brutisso@4612 | 41 | output.shouldNotContain("error"); |
brutisso@4612 | 42 | output.shouldHaveExitValue(0); |
brutisso@4612 | 43 | } |
brutisso@4612 | 44 | |
brutisso@4612 | 45 | } |