Skip to content

Commit a6f1ab2

Browse files
committed
Split posCC from pos tests
I believe the timeout was simply that we have to many pos tests, so theior compilation takes more than the limit of 20 minutes. Testing this hypothesis by moving pos-custumargs/captures tests into a separate top-level test posCC
1 parent d89138a commit a6f1ab2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

compiler/test/dotty/tools/dotc/CompilationTests.scala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class CompilationTests {
3737
compileFilesInDir("tests/pos-special/sourcepath/outer", defaultOptions.and("-sourcepath", "tests/pos-special/sourcepath")),
3838
compileFile("tests/pos-special/sourcepath/outer/nested/Test4.scala", defaultOptions.and("-sourcepath", "tests/pos-special/sourcepath")),
3939
compileFilesInDir("tests/pos-scala2", defaultOptions.and("-source", "3.0-migration")),
40-
compileFilesInDir("tests/pos-custom-args/captures", defaultOptions.and("-language:experimental.captureChecking")),
4140
compileFile("tests/pos-special/utf8encoded.scala", defaultOptions.and("-encoding", "UTF8")),
4241
compileFile("tests/pos-special/utf16encoded.scala", defaultOptions.and("-encoding", "UTF16")),
4342
compileDir("tests/pos-special/i18589", defaultOptions.and("-Wsafe-init").without("-Ycheck:all")),
@@ -56,6 +55,12 @@ class CompilationTests {
5655
aggregateTests(tests*).checkCompile()
5756
}
5857

58+
@Test def posCC: Unit =
59+
given TestGroup = TestGroup("compilePosCC")
60+
aggregateTests(
61+
compileFilesInDir("tests/pos-custom-args/captures", defaultOptions.and("-language:experimental.captureChecking")),
62+
).checkCompile()
63+
5964
@Test def rewrites: Unit = {
6065
implicit val testGroup: TestGroup = TestGroup("rewrites")
6166

0 commit comments

Comments
 (0)