@@ -258,7 +258,9 @@ let exename = `$(Base.julia_cmd()) --startup-file=no`
258258 mktempdir () do dir
259259 helperdir = joinpath (@__DIR__ , " testhelpers" )
260260 inputfile = joinpath (helperdir, " coverage_file.jl" )
261- expected = replace (read (joinpath (helperdir, " coverage_file.info" ), String),
261+ expected = replace (read (joinpath (helperdir, " coverage_file.info.bad" ), String),
262+ " <FILENAME>" => realpath (inputfile))
263+ expected_good = replace (read (joinpath (helperdir, " coverage_file.info" ), String),
262264 " <FILENAME>" => realpath (inputfile))
263265 covfile = replace (joinpath (dir, " coverage.info" ), " %" => " %%" )
264266 @test ! isfile (covfile)
@@ -276,18 +278,21 @@ let exename = `$(Base.julia_cmd()) --startup-file=no`
276278 got = read (covfile, String)
277279 rm (covfile)
278280 @test occursin (expected, got) || (expected, got)
281+ @test_broken occursin (expected_good, got)
279282 @test readchomp (` $exename -E "Base.JLOptions().code_coverage" -L $inputfile
280283 --code-coverage=$covfile --code-coverage=user` ) == " 1"
281284 @test isfile (covfile)
282285 got = read (covfile, String)
283286 rm (covfile)
284287 @test occursin (expected, got) || (expected, got)
288+ @test_broken occursin (expected_good, got)
285289 @test readchomp (` $exename -E "Base.JLOptions().code_coverage" -L $inputfile
286290 --code-coverage=$covfile --code-coverage=all` ) == " 2"
287291 @test isfile (covfile)
288292 got = read (covfile, String)
289293 rm (covfile)
290294 @test occursin (expected, got) || (expected, got)
295+ @test_broken occursin (expected_good, got)
291296 end
292297
293298 # --track-allocation
0 commit comments