Skip to content

Commit

Permalink
fix: Escape tallies temporary file path properly (#4767)
Browse files Browse the repository at this point in the history
### Description
#4755 broke the nightly build because I neglected to escape a string
literal properly. Works just fine as long as your directory separator is
`/`, but then Windows had to go and be all different. :)

### How has this been tested?
Existing tests with `run-deep-tests`.

<small>By submitting this pull request, I confirm that my contribution
is made under the terms of the [MIT
license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>
  • Loading branch information
robin-aws committed Nov 10, 2023
1 parent 40cc3dc commit 4d3c2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/DafnyCore/Compilers/CoverageInstrumenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class CoverageInstrumenter {
if (legend != null) {
wr.Write("DafnyProfiling.CodeCoverage.Setup({0}", legend.Count);
if (talliesFilePath != null) {
wr.Write($", \"{talliesFilePath}\"");
wr.Write($", @\"{talliesFilePath}\"");
}
wr.Write(")");
compiler.EndStmt(wr);
Expand Down

0 comments on commit 4d3c2e0

Please sign in to comment.