Skip to content

Commit

Permalink
suggestion from Nathan's review: test for .tar extension
Browse files Browse the repository at this point in the history
  • Loading branch information
d-netto committed Jul 19, 2024
1 parent 2bf8076 commit 6b36a35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ const url = "http://127.0.0.1:$port"
req = HTTP.post("$url/debug_engine", headers, payload)
@test req.status == 200
fname = read(IOBuffer(req.body), String)
@static if isdefined(Profile, :HeapSnapshot) && isdefined(Profile.HeapSnapshot, :assemble_snapshot) && Sys.isunix()
# test whether the returned file has a tar extension
@test occursin(".tar", fname)
end
@info "filename: $fname"
@test isfile(fname)
end
Expand Down

0 comments on commit 6b36a35

Please sign in to comment.