Revision 36f90ba778d7766b4242fd10ebd33f85a1b9162d authored by Jeff Bezanson on 07 April 2017, 22:18:46 UTC, committed by GitHub on 07 April 2017, 22:18:46 UTC
fix #21311, inlining `_apply` reordering evaluations
2 parent s 12f6747 + a27ce01
Raw File
distributed.jl
# This file is a part of Julia. License is MIT: http://julialang.org/license

# Run the distributed test outside of the main driver since it needs its own
# set of dedicated workers.

inline_flag = Base.JLOptions().can_inline == 1 ? `` : `--inline=no`
cov_flag = ``
if Base.JLOptions().code_coverage == 1
    cov_flag = `--code-coverage=user`
elseif Base.JLOptions().code_coverage == 2
    cov_flag = `--code-coverage=all`
end

cmd = `$(Base.julia_cmd()) $inline_flag $cov_flag --check-bounds=yes --startup-file=no --depwarn=error distributed_exec.jl`

if !success(pipeline(cmd; stdout=STDOUT, stderr=STDERR)) && ccall(:jl_running_on_valgrind,Cint,()) == 0
    error("Distributed test failed, cmd : $cmd")
end
back to top