Skip to content

Commit eba46cf

Browse files
committed
Merge pull request scala#38 from SethTisue/enable-fatal-warnings
enable -Xfatal-warnings
2 parents 598955b + a5329a7 commit eba46cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/partest/scala/tools/partest/nest/Runner.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ class Runner(val testFile: File, val suiteRunner: SuiteRunner) {
312312
*
313313
* File paths are detected using the absolute path of the test root.
314314
* A string that looks like a file path is normalized by replacing
315-
* the leading segments (the root) with "$ROOT" and by replacing
315+
* the leading segments (the root) with "\$ROOT" and by replacing
316316
* any Windows backslashes with the one true file separator char.
317317
*/
318318
def normalizeLog() {
@@ -765,7 +765,7 @@ class SuiteRunner(
765765

766766
def banner = {
767767
val baseDir = fileManager.compilerUnderTest.parent.toString
768-
def relativize(path: String) = path.replace(baseDir, "$baseDir").replace(PathSettings.srcDir.toString, "$sourceDir")
768+
def relativize(path: String) = path.replace(baseDir, s"$$baseDir").replace(PathSettings.srcDir.toString, "$sourceDir")
769769
val vmBin = javaHome + fileSeparator + "bin"
770770
val vmName = "%s (build %s, %s)".format(javaVmName, javaVmVersion, javaVmInfo)
771771

0 commit comments

Comments
 (0)