annotate test/gc/startup_warnings/TestCMSIncrementalMode.java @ 18408:2c3666f44855

Truffle: initial commit of object API implementation
author Andreas Woess <andreas.woess@jku.at>
date Tue, 18 Nov 2014 23:19:43 +0100
parents bbc7936779f9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8071
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
1
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
2 /*
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
3 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
5 *
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
6 * This code is free software; you can redistribute it and/or modify it
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
7 * under the terms of the GNU General Public License version 2 only, as
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
8 * published by the Free Software Foundation.
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
9 *
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
10 * This code is distributed in the hope that it will be useful, but WITHOUT
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
13 * version 2 for more details (a copy is included in the LICENSE file that
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
14 * accompanied this code).
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
15 *
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
16 * You should have received a copy of the GNU General Public License version
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
17 * 2 along with this work; if not, write to the Free Software Foundation,
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
19 *
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
21 * or visit www.oracle.com if you need additional information or have any
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
22 * questions.
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
23 */
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
24
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
25 /*
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
26 * @test TestCMSIncrementalMode
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
27 * @key gc
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
28 * @bug 8006398
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
29 * @summary Test that the deprecated CMSIncrementalMode print a warning message
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
30 * @library /testlibrary
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
31 */
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
32
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
33 import com.oracle.java.testlibrary.OutputAnalyzer;
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
34 import com.oracle.java.testlibrary.ProcessTools;
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
35
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
36 public class TestCMSIncrementalMode {
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
37
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
38 public static void main(String args[]) throws Exception {
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
39 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseConcMarkSweepGC", "-XX:+CMSIncrementalMode", "-version");
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
40 OutputAnalyzer output = new OutputAnalyzer(pb.start());
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
41 output.shouldContain("warning: Using incremental CMS is deprecated and will likely be removed in a future release");
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
42 output.shouldNotContain("error");
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
43 output.shouldHaveExitValue(0);
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
44 }
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
45
bbc7936779f9 8006398: Add regression tests for deprectated GCs
brutisso
parents:
diff changeset
46 }