test/compiler/whitebox/MakeMethodNotCompilableTest.java

changeset 6353
d559dbbded7a
parent 6211
d1760952ebdd
child 6876
710a3c8b516e
child 7318
c88a4554854c
equal deleted inserted replaced
6352:57e40b260938 6353:d559dbbded7a
1 /* 1 /*
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
51 * 51 *
52 * @throws Exception if one of the checks fails. 52 * @throws Exception if one of the checks fails.
53 */ 53 */
54 @Override 54 @Override
55 protected void test() throws Exception { 55 protected void test() throws Exception {
56 if (testCase.isOsr() && CompilerWhiteBoxTest.MODE.startsWith( 56 if (skipXcompOSR()) {
57 "compiled ")) { 57 return;
58 System.err.printf("Warning: %s is not applicable in %s%n",
59 testCase.name(), CompilerWhiteBoxTest.MODE);
60 return;
61 } 58 }
62 checkNotCompiled(); 59 checkNotCompiled();
63 if (!isCompilable()) { 60 if (!isCompilable()) {
64 throw new RuntimeException(method + " must be compilable"); 61 throw new RuntimeException(method + " must be compilable");
65 } 62 }

mercurial