Skip to content

partest: correct line numbers in run stack traces #1344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 30, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions test/test/CompilerTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
6 changes: 3 additions & 3 deletions tests/run/origins.check
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

>> Origins tag 'boop' logged 65 calls from 3 distinguished sources.

50 Test$.$anonfun$f3$1(origins.scala:22)
10 Test$.$anonfun$f2$1(origins.scala:21)
5 Test$.$anonfun$f1$1(origins.scala:20)
50 Test$.$anonfun$f3$1(origins.scala:16)
10 Test$.$anonfun$f2$1(origins.scala:15)
5 Test$.$anonfun$f1$1(origins.scala:14)