aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2016-06-02 18:08:33 +0200
committerGuillaume Martres <smarter@ubuntu.com>2016-06-02 19:01:20 +0200
commit35abf29456a7b5b6fa7f114917990cb228e66be9 (patch)
treec3fbf6e16509946fac0b1516da5c47ac3fa7e848 /test
parent845b98186047f38013e2f6aa35508e974eedafb7 (diff)
downloaddotty-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')
-rw-r--r--test/dotc/tests.scala3
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)