-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
boundscheck.jl
18 lines (14 loc) · 785 Bytes
/
boundscheck.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# This file is a part of Julia. License is MIT: https://julialang.org/license
# 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")
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")
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")
end