We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d8472c commit 7cf5568Copy full SHA for 7cf5568
compiler/test/dotty/tools/vulpix/FileDiff.scala
@@ -67,9 +67,12 @@ object FileDiff {
67
val outFilePath = checkFilePath + ".out"
68
FileDiff.check(sourceTitle, actualLines, checkFilePath) match {
69
case Some(msg) if dotty.Properties.testsUpdateCheckfile =>
70
- FileDiff.dump(checkFilePath, actualLines)
+ Files.deleteIfExists(Paths.get(outFilePath))
71
+ if actualLines.isEmpty
72
+ then Files.deleteIfExists(Paths.get(checkFilePath))
73
+ else FileDiff.dump(checkFilePath, actualLines)
74
println("Updated checkfile: " + checkFilePath)
- false
75
+ true
76
case Some(msg) =>
77
FileDiff.dump(outFilePath, actualLines)
78
println(msg)
0 commit comments