diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2016-06-03 01:28:56 +0200 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-06-30 01:36:56 +0100 |
commit | 00159e64977ff72b6b51f9bb26a950ac4b04b49b (patch) | |
tree | 68cf672f2b82292657f69460bd6935b6a15e4cea /test | |
parent | 66572df759de0e8b25cbfeb0fcac270bb011658a (diff) | |
download | dotty-00159e64977ff72b6b51f9bb26a950ac4b04b49b.tar.gz dotty-00159e64977ff72b6b51f9bb26a950ac4b04b49b.tar.bz2 dotty-00159e64977ff72b6b51f9bb26a950ac4b04b49b.zip |
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.
Diffstat (limited to 'test')
-rw-r--r-- | test/test/CompilerTest.scala | 8 |
1 files changed, 2 insertions, 6 deletions
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") } |