Mercurial > hg > graal-jvmci-8
comparison test/compiler/whitebox/CompilerWhiteBoxTest.java @ 14680:2dfa56e10640
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 | bbfe3ac1471d |
children | 92aa6797d639 |
comparison
equal
deleted
inserted
replaced
14679:c0b9499e5525 | 14680:2dfa56e10640 |
---|---|
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. |
401 Callable<Integer> getCallable(); | 401 Callable<Integer> getCallable(); |
402 | 402 |
403 /** flag for OSR test case */ | 403 /** flag for OSR test case */ |
404 boolean isOsr(); | 404 boolean isOsr(); |
405 } | 405 } |
406 | |
407 /** | |
408 * @return {@code true} if the current test case is OSR and the mode is | |
409 * Xcomp, otherwise {@code false} | |
410 */ | |
411 protected boolean skipXcompOSR() { | |
412 boolean result = testCase.isOsr() | |
413 && CompilerWhiteBoxTest.MODE.startsWith("compiled "); | |
414 if (result && IS_VERBOSE) { | |
415 System.err.printf("Warning: %s is not applicable in %s%n", | |
416 testCase.name(), CompilerWhiteBoxTest.MODE); | |
417 } | |
418 return result; | |
419 } | |
406 } | 420 } |
407 | 421 |
408 enum SimpleTestCase implements CompilerWhiteBoxTest.TestCase { | 422 enum SimpleTestCase implements CompilerWhiteBoxTest.TestCase { |
409 /** constructor test case */ | 423 /** constructor test case */ |
410 CONSTRUCTOR_TEST(Helper.CONSTRUCTOR, Helper.CONSTRUCTOR_CALLABLE, false), | 424 CONSTRUCTOR_TEST(Helper.CONSTRUCTOR, Helper.CONSTRUCTOR_CALLABLE, false), |