Skip to content

Commit aa7ae5a

Browse files
authored
Make --code-coverage testing more robust for filepath. (#31939)
1 parent 9e9bcb8 commit aa7ae5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cmdlineargs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ let exename = `$(Base.julia_cmd()) --startup-file=no`
212212
helperdir = joinpath(@__DIR__, "testhelpers")
213213
inputfile = joinpath(helperdir, "coverage_file.jl")
214214
expected = replace(read(joinpath(helperdir, "coverage_file.info"), String),
215-
"<FILENAME>" => inputfile)
215+
"<FILENAME>" => realpath(inputfile))
216216
covfile = replace(joinpath(dir, "coverage.info"), "%" => "%%")
217217
@test !isfile(covfile)
218218
defaultcov = readchomp(`$exename -E "Bool(Base.JLOptions().code_coverage)" -L $inputfile`)

0 commit comments

Comments
 (0)