From 00159e64977ff72b6b51f9bb26a950ac4b04b49b Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Fri, 3 Jun 2016 01:28:56 +0200 Subject: partest: correct line numbers in run stack traces partest adds a warning in a comment at the beginning of source files that it copies, but this means that every line number displayed in a stack trace is offset by 6. We can workaround this by making the warning a single line with no newline at the end. --- test/test/CompilerTest.scala | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'test/test') diff --git a/test/test/CompilerTest.scala b/test/test/CompilerTest.scala index 995244986..1977d21e0 100644 --- a/test/test/CompilerTest.scala +++ b/test/test/CompilerTest.scala @@ -438,12 +438,8 @@ abstract class CompilerTest { processFileDir(sourceFile, { sf => if (extensionsToCopy.contains(sf.extension)) { dest.parent.jfile.mkdirs - dest.toFile.writeAll("/* ==========================================\n", - " * ========= AUTOMATICALLY GENERATED ========\n", - " * ========= DO NOT EDIT THIS FILE ==========\n", - " * ==========================================\n", - " * Original: " + sf.toString + " */\n\n", - sf.slurp()) + dest.toFile.writeAll("/* !!!!! WARNING: DO NOT MODIFY. Original is at: $sf !!!!! */", + sf.slurp()) } else { log(s"WARNING: ignoring $sf") } -- cgit v1.2.3