Skip to content

Commit

Permalink
Make --code-coverage testing more robust for filepath. (#31939)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre authored May 6, 2019
1 parent 9e9bcb8 commit aa7ae5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cmdlineargs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ let exename = `$(Base.julia_cmd()) --startup-file=no`
helperdir = joinpath(@__DIR__, "testhelpers")
inputfile = joinpath(helperdir, "coverage_file.jl")
expected = replace(read(joinpath(helperdir, "coverage_file.info"), String),
"<FILENAME>" => inputfile)
"<FILENAME>" => realpath(inputfile))
covfile = replace(joinpath(dir, "coverage.info"), "%" => "%%")
@test !isfile(covfile)
defaultcov = readchomp(`$exename -E "Bool(Base.JLOptions().code_coverage)" -L $inputfile`)
Expand Down

0 comments on commit aa7ae5a

Please sign in to comment.