Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottPJones committed Aug 10, 2015
1 parent 4bdbbe7 commit be7fda0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/compile.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# This file is a part of Julia. License is MIT: http://julialang.org/license

println(STDERR, "Starting compile test")
using Base.Test

dir = mktempdir()
Expand Down Expand Up @@ -35,9 +36,12 @@ try
# the module doesn't load from the image:
olderr = STDERR
try
println(STDERR, "Start STDERR redirection")
rd, wr = redirect_stderr()
@test nothing !== Base._require_from_serialized(myid(), Foo_module, true)
sleep(5)
redirect_stderr(olderr)
println(STDERR, "Finished STDERR redirection")
catch exc
redirect_stderr(olderr)
rethow(exc)
Expand Down Expand Up @@ -71,6 +75,7 @@ try
Base.compilecache("Baz") # from __precompile__(false)
error("test failed: Base.compilecache did not throw anything")
catch exc
println("Caught exception: $exc")
redirect_stderr(olderr)
isa(exc, ErrorException) || rethrow(exc)
search(exc.msg, "__precompile__(false)") == 0 && rethrow(exc)
Expand Down

0 comments on commit be7fda0

Please sign in to comment.