Skip to content

Commit

Permalink
Skip TestProcessorTest on JDK 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Egorand committed Feb 14, 2025
1 parent 073df16 commit 08e7639
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import com.tschuchort.compiletesting.configureKsp
import com.tschuchort.compiletesting.kspProcessorOptions
import com.tschuchort.compiletesting.kspSourcesDir
import java.io.File
import org.junit.Assume.assumeFalse
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.rules.TemporaryFolder
Expand All @@ -47,6 +49,15 @@ class TestProcessorTest(private val useKsp2: Boolean) {
@JvmField
val temporaryFolder: TemporaryFolder = TemporaryFolder()

@Before
fun skipOnJdk8() {
val javaVersion = System.getProperty("java.version") ?: return // Don't skip if version unknown.
assumeFalse(
"These tests currently fail on JDK 8 when useKsp2 == false",
javaVersion.startsWith("1.8") && !useKsp2,
)
}

@Test
fun smokeTest() {
val compilation = prepareCompilation(
Expand Down

0 comments on commit 08e7639

Please sign in to comment.