mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@4984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fbcac5f129
commit
54ebae1ba1
3 changed files with 9 additions and 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>
|
Tue Nov 18 23:31:36 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
* missing/memmove.c (memmove): take void *, not char *.
|
* missing/memmove.c (memmove): take void *, not char *.
|
||||||
|
|
|
@ -272,4 +272,4 @@ module Test
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
at_exit{Test::Unit::AutoRunner.run($0) unless(Test::Unit.run?)}
|
at_exit{Test::Unit::AutoRunner.run($0) unless($! || Test::Unit.run?)}
|
||||||
|
|
|
@ -8,7 +8,7 @@ module Test
|
||||||
module Unit
|
module Unit
|
||||||
|
|
||||||
# Thrown by Test::Unit::Assertions when an assertion fails.
|
# Thrown by Test::Unit::Assertions when an assertion fails.
|
||||||
class AssertionFailedError < Exception
|
class AssertionFailedError < StandardError
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue