Skip to content

Commit

Permalink
print the output of spawned unixdomaincm test on error
Browse files Browse the repository at this point in the history
  • Loading branch information
amitmurthy committed Feb 25, 2015
1 parent 574a022 commit 50381d2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,14 @@ include(joinpath(dir, "queens.jl"))
# Different cluster managers do not play well together. Since
# the test infrastructure already uses LocalManager, we will test the simple
# cluster manager example through a new Julia session.

@unix_only begin
script = joinpath(dir, "clustermanager/simple/test_simple.jl")
cmd = `$(joinpath(JULIA_HOME,Base.julia_exename())) $script`
if !success(cmd) && ccall(:jl_running_on_valgrind,Cint,()) == 0

(strm, proc) = open(cmd)
wait(proc)
if !success(proc) && ccall(:jl_running_on_valgrind,Cint,()) == 0
println(readall(strm))
error("UnixDomainCM failed test, cmd : $cmd")
end
end
Expand Down

0 comments on commit 50381d2

Please sign in to comment.