Skip to content

Commit

Permalink
[GR-50924] Run test only with correct jdk version.
Browse files Browse the repository at this point in the history
PullRequest: graal/16680
  • Loading branch information
davleopo committed Jan 22, 2024
2 parents cce3036 + 813815e commit 4158020
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
import java.util.Optional;
import java.util.concurrent.atomic.AtomicInteger;

import org.junit.Assume;
import org.junit.Before;
import org.junit.Test;

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

@Before
public void checkJDKVersion() {
Assume.assumeTrue("inconsistent speculation log fixed in 23+5", Runtime.version().compareToIgnoreOptional(Runtime.Version.parse("23+5")) >= 0);
}

public static final boolean LOG_STDOUT = false;

// Snippet with a loop that can easily overflow
Expand Down

0 comments on commit 4158020

Please sign in to comment.