From aa7ae5ab25f91e1e7525859a908ef94a7b5b4c65 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Mon, 6 May 2019 21:00:15 +0200 Subject: [PATCH] Make --code-coverage testing more robust for filepath. (#31939) --- test/cmdlineargs.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cmdlineargs.jl b/test/cmdlineargs.jl index 5d48fc642e736..92b72955451fd 100644 --- a/test/cmdlineargs.jl +++ b/test/cmdlineargs.jl @@ -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), - "" => inputfile) + "" => realpath(inputfile)) covfile = replace(joinpath(dir, "coverage.info"), "%" => "%%") @test !isfile(covfile) defaultcov = readchomp(`$exename -E "Bool(Base.JLOptions().code_coverage)" -L $inputfile`)