comparison test/compiler/whitebox/IsMethodCompilableTest.java @ 17711:d559dbbded7a

8027124: [TESTBUG] NonTieredLevelsTest: java.lang.RuntimeException: private TestCase$Helper(java.lang.Object) must be osr_compiled Reviewed-by: kvn, roland
author iignatyev
date Thu, 06 Mar 2014 12:47:45 +0400
parents d1760952ebdd
children 5e6f84e7a942
comparison
equal deleted inserted replaced
17710:57e40b260938 17711: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.
64 * 64 *
65 * @throws Exception if one of the checks fails. 65 * @throws Exception if one of the checks fails.
66 */ 66 */
67 @Override 67 @Override
68 protected void test() throws Exception { 68 protected void test() throws Exception {
69 if (testCase.isOsr() && CompilerWhiteBoxTest.MODE.startsWith( 69 if (skipXcompOSR()) {
70 "compiled ")) {
71 System.err.printf("Warning: %s is not applicable in %s%n",
72 testCase.name(), CompilerWhiteBoxTest.MODE);
73 return; 70 return;
74 } 71 }
75 if (!isCompilable()) { 72 if (!isCompilable()) {
76 throw new RuntimeException(method + " must be compilable"); 73 throw new RuntimeException(method + " must be compilable");
77 } 74 }