@@ -132,7 +132,7 @@ class CompilationTests {
132132 compileFilesInDir(" tests/neg-deep-subtype" , allowDeepSubtypes),
133133 compileFilesInDir(" tests/neg-custom-args/captures" , defaultOptions.and(" -language:experimental.captureChecking" )),
134134 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 " )),
136136 compileList(" duplicate source" , List (
137137 " tests/neg-custom-args/toplevel-samesource/S.scala" ,
138138 " tests/neg-custom-args/toplevel-samesource/nested/S.scala" ),
@@ -214,7 +214,7 @@ class CompilationTests {
214214 compileFilesInDir(" tests/init/neg" , options).checkExpectedErrors()
215215 compileFilesInDir(" tests/init/warn" , defaultOptions.and(" -Ysafe-init" )).checkWarnings()
216216 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()
218218 // The regression test for i12128 has some atypical classpath requirements.
219219 // The test consists of three files: (a) Reflect_1 (b) Macro_2 (c) Test_3
220220 // which must be compiled separately. In addition:
@@ -223,7 +223,7 @@ class CompilationTests {
223223 // - the output from (a) _must not_ be on the classpath while compiling (c)
224224 locally {
225225 val i12128Group = TestGroup (" checkInit/i12128" )
226- val i12128Options = options.without(" -Werror " )
226+ val i12128Options = options.without(" -Xfatal-warnings " )
227227 val outDir1 = defaultOutputDir + i12128Group + " /Reflect_1/i12128/Reflect_1"
228228 val outDir2 = defaultOutputDir + i12128Group + " /Macro_2/i12128/Macro_2"
229229
@@ -242,7 +242,7 @@ class CompilationTests {
242242 * an error when reading the files' TASTy trees. */
243243 locally {
244244 val tastyErrorGroup = TestGroup (" checkInit/tasty-error/val-or-defdef" )
245- val tastyErrorOptions = options.without(" -Werror " )
245+ val tastyErrorOptions = options.without(" -Xfatal-warnings " )
246246
247247 val classA0 = defaultOutputDir + tastyErrorGroup + " /A/v0/A"
248248 val classA1 = defaultOutputDir + tastyErrorGroup + " /A/v1/A"
@@ -265,7 +265,7 @@ class CompilationTests {
265265 * an error when reading the files' TASTy trees. This fact is demonstrated by the compilation of Main. */
266266 locally {
267267 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" )
269269
270270 val classC = defaultOutputDir + tastyErrorGroup + " /C/typedef/C"
271271 val classA0 = defaultOutputDir + tastyErrorGroup + " /A/v0/A"
0 commit comments