Skip to content

Commit

Permalink
fix boundscheck tests
Browse files Browse the repository at this point in the history
Co-Authored-By: Shawn LeMaster <[email protected]>
  • Loading branch information
aviatesk and shlemas committed Jan 10, 2023
1 parent e9f44a9 commit 79eb7be
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions test/boundscheck.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@

# run boundscheck tests on separate workers launched with --check-bounds={default,yes,no}

cmd = `$(Base.julia_cmd()) --depwarn=error --startup-file=no boundscheck_exec.jl`
if !success(pipeline(cmd; stdout=stdout, stderr=stderr))
error("boundscheck test failed, cmd : $cmd")
let cmd = `$(Base.julia_cmd()) --check-bounds=auto --depwarn=error --startup-file=no boundscheck_exec.jl`
success(pipeline(cmd; stdout=stdout, stderr=stderr)) || error("boundscheck test failed, cmd : $cmd")
end

cmd = `$(Base.julia_cmd()) --check-bounds=yes --startup-file=no --depwarn=error boundscheck_exec.jl`
if !success(pipeline(cmd; stdout=stdout, stderr=stderr))
error("boundscheck test failed, cmd : $cmd")
let cmd = `$(Base.julia_cmd()) --check-bounds=yes --startup-file=no --depwarn=error boundscheck_exec.jl`
success(pipeline(cmd; stdout=stdout, stderr=stderr)) || error("boundscheck test failed, cmd : $cmd")
end

cmd = `$(Base.julia_cmd()) --check-bounds=no --startup-file=no --depwarn=error boundscheck_exec.jl`
if !success(pipeline(cmd; stdout=stdout, stderr=stderr))
error("boundscheck test failed, cmd : $cmd")
let cmd = `$(Base.julia_cmd()) --check-bounds=no --startup-file=no --depwarn=error boundscheck_exec.jl`
success(pipeline(cmd; stdout=stdout, stderr=stderr)) || error("boundscheck test failed, cmd : $cmd")
end

0 comments on commit 79eb7be

Please sign in to comment.