annotate test/compiler/debug/VerifyAdapterSharing.java @ 17613:5a83a5546dc7

8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken Summary: Added simple regression test Reviewed-by: iveresov
author anoll
date Fri, 20 Dec 2013 10:29:44 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17613
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
1 /*
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
4 *
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
7 * published by the Free Software Foundation.
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
8 *
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
13 * accompanied this code).
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
14 *
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
18 *
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
21 * questions.
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
22 */
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
23
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
24 /*
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
25 * @test
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
26 * @bug 8030783
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
27 * @summary Regression test for 8026478
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
28 * @library /testlibrary
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
29 *
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
30 */
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
31 import com.oracle.java.testlibrary.*;
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
32
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
33 public class VerifyAdapterSharing {
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
34 public static void main(String[] args) throws Exception {
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
35 ProcessBuilder pb;
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
36 OutputAnalyzer out;
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
37
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
38 pb = ProcessTools.createJavaProcessBuilder("-Xcomp", "-XX:+IgnoreUnrecognizedVMOptions",
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
39 "-XX:+VerifyAdapterSharing", "-version");
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
40 out = new OutputAnalyzer(pb.start());
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
41 out.shouldHaveExitValue(0);
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
42 }
5a83a5546dc7 8030783: Provide regression test for 8026478: -XX:+VerifyAdapterSharing is broken
anoll
parents:
diff changeset
43 }