Skip to content

Commit 39a52ed

Browse files
committed
Fix #3071: add test for missing output directory
1 parent c4baead commit 39a52ed

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package dotty.tools.dotc
2+
3+
import org.junit.Test
4+
import org.junit.Assert._
5+
6+
class SettingsTests {
7+
8+
@Test def missingOutputDir: Unit = {
9+
val options = Array("-d", "not_here")
10+
val reporter = Main.process(options)
11+
assertEquals(1, reporter.errorCount)
12+
assertEquals("'not_here' does not exist or is not a directory", reporter.allErrors.head.message)
13+
}
14+
}

0 commit comments

Comments
 (0)