We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ae41a2 commit be3bc9aCopy full SHA for be3bc9a
stdlib/Test/src/precompile.jl
@@ -1,9 +1,11 @@
1
-redirect_stdout(devnull) do
2
- @testset "example" begin
3
- @test 1 == 1
4
- @test_throws ErrorException error()
5
- @test_logs (:info, "Doing foo with n=2") @info "Doing foo with n=2"
6
- @test_broken 1 == 2
7
- @test 1 ≈ 1.0000000000000001
+if Base.generating_output()
+ redirect_stdout(devnull) do
+ @testset "example" begin
+ @test 1 == 1
+ @test_throws ErrorException error()
+ @test_logs (:info, "Doing foo with n=2") @info "Doing foo with n=2"
+ @test_broken 1 == 2
8
+ @test 1 ≈ 1.0000000000000001
9
+ end
10
end
11
0 commit comments