@@ -132,7 +132,7 @@ class CompilationTests {
132
132
compileFilesInDir(" tests/neg-deep-subtype" , allowDeepSubtypes),
133
133
compileFilesInDir(" tests/neg-custom-args/captures" , defaultOptions.and(" -language:experimental.captureChecking" )),
134
134
compileFile(" tests/neg-custom-args/sourcepath/outer/nested/Test1.scala" , defaultOptions.and(" -sourcepath" , " tests/neg-custom-args/sourcepath" )),
135
- compileDir(" tests/neg-custom-args/sourcepath2/hi" , defaultOptions.and(" -sourcepath" , " tests/neg-custom-args/sourcepath2" , " -Werror " )),
135
+ compileDir(" tests/neg-custom-args/sourcepath2/hi" , defaultOptions.and(" -sourcepath" , " tests/neg-custom-args/sourcepath2" , " -Xfatal-warnings " )),
136
136
compileList(" duplicate source" , List (
137
137
" tests/neg-custom-args/toplevel-samesource/S.scala" ,
138
138
" tests/neg-custom-args/toplevel-samesource/nested/S.scala" ),
@@ -214,7 +214,7 @@ class CompilationTests {
214
214
compileFilesInDir(" tests/init/neg" , options).checkExpectedErrors()
215
215
compileFilesInDir(" tests/init/warn" , defaultOptions.and(" -Ysafe-init" )).checkWarnings()
216
216
compileFilesInDir(" tests/init/pos" , options).checkCompile()
217
- compileFilesInDir(" tests/init/crash" , options.without(" -Werror " )).checkCompile()
217
+ compileFilesInDir(" tests/init/crash" , options.without(" -Xfatal-warnings " )).checkCompile()
218
218
// The regression test for i12128 has some atypical classpath requirements.
219
219
// The test consists of three files: (a) Reflect_1 (b) Macro_2 (c) Test_3
220
220
// which must be compiled separately. In addition:
@@ -223,7 +223,7 @@ class CompilationTests {
223
223
// - the output from (a) _must not_ be on the classpath while compiling (c)
224
224
locally {
225
225
val i12128Group = TestGroup (" checkInit/i12128" )
226
- val i12128Options = options.without(" -Werror " )
226
+ val i12128Options = options.without(" -Xfatal-warnings " )
227
227
val outDir1 = defaultOutputDir + i12128Group + " /Reflect_1/i12128/Reflect_1"
228
228
val outDir2 = defaultOutputDir + i12128Group + " /Macro_2/i12128/Macro_2"
229
229
@@ -242,7 +242,7 @@ class CompilationTests {
242
242
* an error when reading the files' TASTy trees. */
243
243
locally {
244
244
val tastyErrorGroup = TestGroup (" checkInit/tasty-error/val-or-defdef" )
245
- val tastyErrorOptions = options.without(" -Werror " )
245
+ val tastyErrorOptions = options.without(" -Xfatal-warnings " )
246
246
247
247
val classA0 = defaultOutputDir + tastyErrorGroup + " /A/v0/A"
248
248
val classA1 = defaultOutputDir + tastyErrorGroup + " /A/v1/A"
@@ -265,7 +265,7 @@ class CompilationTests {
265
265
* an error when reading the files' TASTy trees. This fact is demonstrated by the compilation of Main. */
266
266
locally {
267
267
val tastyErrorGroup = TestGroup (" checkInit/tasty-error/typedef" )
268
- val tastyErrorOptions = options.without(" -Werror " ).without(" -Ycheck:all" )
268
+ val tastyErrorOptions = options.without(" -Xfatal-warnings " ).without(" -Ycheck:all" )
269
269
270
270
val classC = defaultOutputDir + tastyErrorGroup + " /C/typedef/C"
271
271
val classA0 = defaultOutputDir + tastyErrorGroup + " /A/v0/A"
0 commit comments