Skip to content

Commit 5c9a569

Browse files
committed
Don't check for full TASTY post-processig support on Scala 3 Next RC integration tests
1 parent e40dedc commit 5c9a569

File tree

4 files changed

+21
-13
lines changed

4 files changed

+21
-13
lines changed

modules/integration/src/test/scala/scala/cli/integration/CompileTestDefinitions.scala

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -697,15 +697,4 @@ abstract class CompileTestDefinitions
697697
expect(out.contains("Too small maximum heap"))
698698
}
699699
}
700-
701-
test(s"TASTY processor does not warn about Scala $actualScalaVersion") {
702-
TestInputs(os.rel / "simple.sc" -> s"""println("Hello")""")
703-
.fromRoot { root =>
704-
val result =
705-
os.proc(TestUtil.cli, "compile", ".", extraOptions)
706-
.call(cwd = root, stderr = os.Pipe)
707-
expect(result.exitCode == 0)
708-
expect(!result.err.text().contains("cannot post process TASTY files"))
709-
}
710-
}
711700
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
package scala.cli.integration
22

3-
class CompileTests3Lts extends CompileTestDefinitions with Test3Lts
3+
class CompileTests3Lts extends CompileTestDefinitions with CompileTests3StableDefinitions
4+
with Test3Lts
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package scala.cli.integration
2+
3+
import com.eed3si9n.expecty.Expecty.expect
4+
5+
trait CompileTests3StableDefinitions { _: CompileTestDefinitions =>
6+
test(s"TASTY processor does not warn about Scala $actualScalaVersion") {
7+
TestInputs(os.rel / "simple.sc" -> s"""println("Hello")""")
8+
.fromRoot { root =>
9+
val result =
10+
os.proc(TestUtil.cli, "compile", ".", extraOptions)
11+
.call(cwd = root, stderr = os.Pipe)
12+
expect(result.exitCode == 0)
13+
expect(!result.err.text().contains("cannot post process TASTY files"))
14+
}
15+
}
16+
17+
}

modules/integration/src/test/scala/scala/cli/integration/CompileTestsDefault.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import com.eed3si9n.expecty.Expecty.expect
44

55
import java.io.File
66

7-
class CompileTestsDefault extends CompileTestDefinitions with TestDefault {
7+
class CompileTestsDefault extends CompileTestDefinitions with CompileTests3StableDefinitions
8+
with TestDefault {
89
test("render explain message") {
910
val fileName = "Hello.scala"
1011
val inputs = TestInputs(

0 commit comments

Comments
 (0)