Skip to content

Commit 3cf5dcb

Browse files
committed
Refactor crash tests
1 parent 4c96a4b commit 3cf5dcb

31 files changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,16 @@ class CompilationTests extends ParallelTesting {
301301
val options = defaultOptions.and("-Ycheck-init", "-Xfatal-warnings")
302302
aggregateTests(
303303
compileFilesInDir("tests/init/neg/", options),
304-
compileFilesInDir("tests/init/neg/crash", options),
304+
compileFilesInDir("tests/init/crash", options),
305305
)
306306
}.checkExpectedErrors()
307307

308+
@Test def checkInitCrash: Unit = {
309+
implicit val testGroup: TestGroup = TestGroup("checkInit")
310+
val options = defaultOptions.and("-Ycheck-init")
311+
compileFilesInDir("tests/init/crash", options)
312+
}.checkCompile()
313+
308314
@Test def checkInitPos: Unit = {
309315
implicit val testGroup: TestGroup = TestGroup("checkInit")
310316
val options = defaultOptions.and("-Ycheck-init", "-Xfatal-warnings")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)