diff options
Diffstat (limited to 'test/test_timeout.rb')
-rw-r--r-- | test/test_timeout.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_timeout.rb b/test/test_timeout.rb index 08885cd54f..c0d6e1bf65 100644 --- a/test/test_timeout.rb +++ b/test/test_timeout.rb @@ -67,4 +67,12 @@ class TestTimeout < Test::Unit::TestCase assert_equal(:ok, timeout(100, err) {:ok}) end end + + def test_exit_exception + assert_raise_with_message(Timeout::ExitException, "boon") do + Timeout.timeout(10, Timeout::ExitException) do + raise Timeout::ExitException, "boon" + end + end + end end |