Skip to content

Commit

Permalink
DefaultTestSet tests for test_broken and test_skip (#21086)
Browse files Browse the repository at this point in the history
* DefaultTestSet tests for test_broken and test_skip

Check that test_broken and test_skip do not result in an exception.
Already fixed in 8982605 - "Rework test framework", but present in
julia-0.5 (see #21008).

* Cleanup: use isa rather than typeof
  • Loading branch information
c42f authored and tkelman committed Mar 26, 2017
1 parent fb312c4 commit e3e912a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,18 @@ end
@test counter_17462_pre == 3
@test counter_17462_post == 1

# Issue #21008
ts = try
@testset "@test_broken and @test_skip should not give an exception" begin
@test_broken false
@test_skip true
@test_skip false
end
catch
nothing # Shouldn't get here
end
@test ts isa Base.Test.DefaultTestSet

# now we're done running tests with DefaultTestSet so we can go back to STDOUT
redirect_stdout(OLD_STDOUT)
redirect_stderr(OLD_STDERR)
Expand Down

2 comments on commit e3e912a

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Executing the daily benchmark build, I will reply here when finished:

@nanosoldier runbenchmarks(ALL, isdaily = true)

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @jrevels

Please sign in to comment.