comparison test/compiler/whitebox/CompilerWhiteBoxTest.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 4abb719c5620
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.
378 Callable<Integer> getCallable(); 378 Callable<Integer> getCallable();
379 379
380 /** flag for OSR test case */ 380 /** flag for OSR test case */
381 boolean isOsr(); 381 boolean isOsr();
382 } 382 }
383
384 /**
385 * @return {@code true} if the current test case is OSR and the mode is
386 * Xcomp, otherwise {@code false}
387 */
388 protected boolean skipXcompOSR() {
389 boolean result = testCase.isOsr()
390 && CompilerWhiteBoxTest.MODE.startsWith("compiled ");
391 if (result && IS_VERBOSE) {
392 System.err.printf("Warning: %s is not applicable in %s%n",
393 testCase.name(), CompilerWhiteBoxTest.MODE);
394 }
395 return result;
396 }
383 } 397 }
384 398
385 enum SimpleTestCase implements CompilerWhiteBoxTest.TestCase { 399 enum SimpleTestCase implements CompilerWhiteBoxTest.TestCase {
386 /** constructor test case */ 400 /** constructor test case */
387 CONSTRUCTOR_TEST(Helper.CONSTRUCTOR, Helper.CONSTRUCTOR_CALLABLE, false), 401 CONSTRUCTOR_TEST(Helper.CONSTRUCTOR, Helper.CONSTRUCTOR_CALLABLE, false),