diff options
Diffstat (limited to 'test/lib/test/unit/assertions.rb')
-rw-r--r-- | test/lib/test/unit/assertions.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/lib/test/unit/assertions.rb b/test/lib/test/unit/assertions.rb index d605d7997f..7a16be2ed9 100644 --- a/test/lib/test/unit/assertions.rb +++ b/test/lib/test/unit/assertions.rb @@ -589,14 +589,13 @@ EOT file ||= loc.path line ||= loc.lineno end - line -= 5 # lines until src src = <<eom -# -*- coding: #{src.encoding}; -*- +# -*- coding: #{line += __LINE__; src.encoding}; -*- require #{__dir__.dump};include Test::Unit::Assertions END { puts [Marshal.dump($!)].pack('m'), "assertions=\#{self._assertions}" } -#{src} +#{line -= __LINE__; src} class Test::Unit::Runner @@stop_auto_run = true end @@ -621,7 +620,7 @@ eom else res.set_backtrace(caller) end - raise res + raise res unless SystemExit === res end # really is it succeed? |