diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-21 00:07:32 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-21 00:07:32 +0000 |
commit | ba661182a40a486f089e63889897ab98d9db85b5 (patch) | |
tree | 96d46c646be16291fa4dcc7a3e91884a5c099eb7 /test/testunit/tests_for_parallel/ptest_forth.rb | |
parent | c50c1a0064ac9757fabf80ba16b324f5950af2c4 (diff) | |
download | ruby-ba661182a40a486f089e63889897ab98d9db85b5.tar.gz |
* test/testunit/tests_for_parallel/ptest_forth.rb: added a test case
which causes an error.
* test/testunit/test_parallel.rb: follow above change.
see [Bug #6882]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/testunit/tests_for_parallel/ptest_forth.rb')
-rw-r--r-- | test/testunit/tests_for_parallel/ptest_forth.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/testunit/tests_for_parallel/ptest_forth.rb b/test/testunit/tests_for_parallel/ptest_forth.rb index c778a2ecc9..ad5a7f34ce 100644 --- a/test/testunit/tests_for_parallel/ptest_forth.rb +++ b/test/testunit/tests_for_parallel/ptest_forth.rb @@ -1,6 +1,8 @@ require 'test/unit' class TestE < Test::Unit::TestCase + class UnknownError < RuntimeError; end + def test_not_fail assert_equal(1,1) end @@ -12,5 +14,8 @@ class TestE < Test::Unit::TestCase def test_always_fail assert_equal(0,1) end -end + def test_unknown_error + raise UnknownError, "unknown error" + end +end |