diff options
author | ntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-18 23:00:29 +0000 |
---|---|---|
committer | ntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-18 23:00:29 +0000 |
commit | 4560be3bcdb0aceb88c7b9ac630846ec131dc5a7 (patch) | |
tree | cd5d461daf2a29c124aa9dae0735ed792a0e4961 | |
parent | 832cbb08fd5f6322d9d9ea161de6b5235833f4dc (diff) | |
download | ruby-4560be3bcdb0aceb88c7b9ac630846ec131dc5a7.tar.gz ruby-4560be3bcdb0aceb88c7b9ac630846ec131dc5a7.tar.xz ruby-4560be3bcdb0aceb88c7b9ac630846ec131dc5a7.zip |
* lib/test/unit.rb: do not run tests if $! is set.
* lib/test/unit/assertionfailederror.rb: extend StandardError instead
Exception (irb catches the former but not the latter).
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/test/unit.rb | 2 | ||||
-rw-r--r-- | lib/test/unit/assertionfailederror.rb | 2 |
3 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,10 @@ +Tue Nov 19 07:54:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org> + + * lib/test/unit.rb: do not run tests if $! is set. + + * lib/test/unit/assertionfailederror.rb: extend StandardError instead + Exception (irb catches the former but not the latter). + Tue Nov 18 23:31:36 2003 WATANABE Hirofumi <eban@ruby-lang.org> * missing/memmove.c (memmove): take void *, not char *. diff --git a/lib/test/unit.rb b/lib/test/unit.rb index 6fab874f2..ce2eb85da 100644 --- a/lib/test/unit.rb +++ b/lib/test/unit.rb @@ -272,4 +272,4 @@ module Test end end -at_exit{Test::Unit::AutoRunner.run($0) unless(Test::Unit.run?)} +at_exit{Test::Unit::AutoRunner.run($0) unless($! || Test::Unit.run?)} diff --git a/lib/test/unit/assertionfailederror.rb b/lib/test/unit/assertionfailederror.rb index 9b9e53f16..085420367 100644 --- a/lib/test/unit/assertionfailederror.rb +++ b/lib/test/unit/assertionfailederror.rb @@ -8,7 +8,7 @@ module Test module Unit # Thrown by Test::Unit::Assertions when an assertion fails. - class AssertionFailedError < Exception + class AssertionFailedError < StandardError end end end |