Skip to content

Commit 4158020

Browse files
committed
[GR-50924] Run test only with correct jdk version.
PullRequest: graal/16680
2 parents cce3036 + 813815e commit 4158020

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/hotspot/test/HotSpotLoopOverflowSpeculationTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
import java.util.Optional;
2929
import java.util.concurrent.atomic.AtomicInteger;
3030

31+
import org.junit.Assume;
32+
import org.junit.Before;
3133
import org.junit.Test;
3234

3335
import jdk.graal.compiler.api.directives.GraalDirectives;
@@ -54,6 +56,11 @@
5456
*/
5557
public class HotSpotLoopOverflowSpeculationTest extends GraalCompilerTest {
5658

59+
@Before
60+
public void checkJDKVersion() {
61+
Assume.assumeTrue("inconsistent speculation log fixed in 23+5", Runtime.version().compareToIgnoreOptional(Runtime.Version.parse("23+5")) >= 0);
62+
}
63+
5764
public static final boolean LOG_STDOUT = false;
5865

5966
// Snippet with a loop that can easily overflow

0 commit comments

Comments
 (0)