diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2016-06-02 18:08:33 +0200 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-06-02 19:01:20 +0200 |
commit | 35abf29456a7b5b6fa7f114917990cb228e66be9 (patch) | |
tree | c3fbf6e16509946fac0b1516da5c47ac3fa7e848 /test/dotc/tests.scala | |
parent | 845b98186047f38013e2f6aa35508e974eedafb7 (diff) | |
download | dotty-35abf29456a7b5b6fa7f114917990cb228e66be9.tar.gz dotty-35abf29456a7b5b6fa7f114917990cb228e66be9.tar.bz2 dotty-35abf29456a7b5b6fa7f114917990cb228e66be9.zip |
Properly report errors when cli flags are malformed
Previously we returned an empty Reporter with no errors so partest
reported the test as a success.
Diffstat (limited to 'test/dotc/tests.scala')
-rw-r--r-- | test/dotc/tests.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala index d43c5059b..bac443735 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -119,6 +119,9 @@ class tests extends CompilerTest { @Test def neg_typedIdents() = compileDir(negDir, "typedIdents") val negCustomArgs = negDir + "customArgs/" + + @Test def neg_cli_error = compileFile(negCustomArgs, "cliError", List("-thisOptionDoesNotExist")) + @Test def neg_typers() = compileFile(negCustomArgs, "typers")(allowDoubleBindings) @Test def neg_overrideClass = compileFile(negCustomArgs, "overrideClass", scala2mode) @Test def neg_autoTupling = compileFile(negCustomArgs, "autoTuplingTest", args = "-language:noAutoTupling" :: Nil) |