Skip to content

Commit

Permalink
Fix stdout/stderr redirect after tests that print to stdout and stderr.
Browse files Browse the repository at this point in the history
  • Loading branch information
danluu committed Sep 8, 2014
1 parent f665dae commit 92aabc4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/reflection.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# code_native (issue #8239)
# code_native / code_llvm (issue #8239)

# redirect stdout and stderr to avoid spam during tests.
oldout = STDOUT
Expand All @@ -17,15 +17,14 @@ redirect_stderr()
@test code_llvm(+, (Array{Float32}, Array{Float32})) == nothing

redirect_stdout(oldout)
redirect_stdout(olderr)
redirect_stderr(olderr)

@test_throws Exception code_native(+, Int, Int)
@test_throws Exception code_native(+, Array{Float32}, Array{Float32})

@test_throws Exception code_llvm(+, Int, Int)
@test_throws Exception code_llvm(+, Array{Float32}, Array{Float32})


# isbits

@test !isbits(Array{Int})
Expand Down

0 comments on commit 92aabc4

Please sign in to comment.