diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2016-02-03 11:20:05 +0100 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2016-02-03 17:32:00 +0100 |
commit | 3d7ff96bd9f637d37e9ce2922cb5140feedc8ae3 (patch) | |
tree | 525df2573ace344ede435282cd89fae1a7243af1 /test/files | |
parent | 6ecb997fa8eb305bf547ec8a6106ba2fd777a594 (diff) | |
download | scala-3d7ff96bd9f637d37e9ce2922cb5140feedc8ae3.tar.gz scala-3d7ff96bd9f637d37e9ce2922cb5140feedc8ae3.tar.bz2 scala-3d7ff96bd9f637d37e9ce2922cb5140feedc8ae3.zip |
Update partest to 1.0.12, test case for reporting invalid flags
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/neg/choices.check | 6 | ||||
-rw-r--r-- | test/files/neg/partestInvalidFlag.check | 4 | ||||
-rw-r--r-- | test/files/neg/partestInvalidFlag.flags | 1 | ||||
-rw-r--r-- | test/files/neg/partestInvalidFlag.scala | 1 | ||||
-rw-r--r-- | test/files/pos/t3420.flags | 2 |
5 files changed, 12 insertions, 2 deletions
diff --git a/test/files/neg/choices.check b/test/files/neg/choices.check index b114394e96..df4f23461f 100644 --- a/test/files/neg/choices.check +++ b/test/files/neg/choices.check @@ -1,2 +1,6 @@ +error: Usage: -Yresolve-term-conflict:<strategy> + where <strategy> choices are package, object, error (default: error) +error: bad option: '-Yresolve-term-conflict' error: bad options: -Yresolve-term-conflict -one error found +error: flags file may only contain compiler options, found: -Yresolve-term-conflict +four errors found diff --git a/test/files/neg/partestInvalidFlag.check b/test/files/neg/partestInvalidFlag.check new file mode 100644 index 0000000000..812191dc22 --- /dev/null +++ b/test/files/neg/partestInvalidFlag.check @@ -0,0 +1,4 @@ +error: bad option: '-badCompilerFlag' +error: bad options: -badCompilerFlag notAFlag -Yopt:badChoice +error: flags file may only contain compiler options, found: -badCompilerFlag notAFlag -Yopt:badChoice +three errors found diff --git a/test/files/neg/partestInvalidFlag.flags b/test/files/neg/partestInvalidFlag.flags new file mode 100644 index 0000000000..68884532b9 --- /dev/null +++ b/test/files/neg/partestInvalidFlag.flags @@ -0,0 +1 @@ +-badCompilerFlag notAFlag -Yopt:badChoice diff --git a/test/files/neg/partestInvalidFlag.scala b/test/files/neg/partestInvalidFlag.scala new file mode 100644 index 0000000000..826a1a5bc2 --- /dev/null +++ b/test/files/neg/partestInvalidFlag.scala @@ -0,0 +1 @@ +class C diff --git a/test/files/pos/t3420.flags b/test/files/pos/t3420.flags index 4fbafb7e80..397969bb1d 100644 --- a/test/files/pos/t3420.flags +++ b/test/files/pos/t3420.flags @@ -1 +1 @@ --Yopt-warnings Yopt:l:project -Xfatal-warnings
\ No newline at end of file +-Yopt-warnings -Yopt:l:classpath -Xfatal-warnings
\ No newline at end of file |