Skip to content

Commit abc00fa

Browse files
committed
Refactor crash tests
1 parent 3e69a99 commit abc00fa

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
@@ -287,10 +287,16 @@ class CompilationTests extends ParallelTesting {
287287
val options = defaultOptions.and("-Ycheck-init", "-Xfatal-warnings")
288288
aggregateTests(
289289
compileFilesInDir("tests/init/neg/", options),
290-
compileFilesInDir("tests/init/neg/crash", options),
290+
compileFilesInDir("tests/init/crash", options),
291291
)
292292
}.checkExpectedErrors()
293293

294+
@Test def checkInitCrash: Unit = {
295+
implicit val testGroup: TestGroup = TestGroup("checkInit")
296+
val options = defaultOptions.and("-Ycheck-init")
297+
compileFilesInDir("tests/init/crash", options)
298+
}.checkCompile()
299+
294300
@Test def checkInitPos: Unit = {
295301
implicit val testGroup: TestGroup = TestGroup("checkInit")
296302
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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)