diff options
author | ntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-21 22:36:13 +0000 |
---|---|---|
committer | ntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-21 22:36:13 +0000 |
commit | dc32688f002f36a4aed31525df0a9a4eff239c60 (patch) | |
tree | a20ac6644bed7a9399e44513bf0abe35967b2eaa /lib/test | |
parent | 35dcc04709bd5a5564145ae34878b84e9b1406cb (diff) | |
download | ruby-dc32688f002f36a4aed31525df0a9a4eff239c60.tar.gz ruby-dc32688f002f36a4aed31525df0a9a4eff239c60.tar.xz ruby-dc32688f002f36a4aed31525df0a9a4eff239c60.zip |
* lib/test/unit/util/backtracefilter.rb: fixed a bug that occurred
when an exception had no backtrace.
* test/testunit/util/test_backtracefilter.rb: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/test')
-rw-r--r-- | lib/test/unit/util/backtracefilter.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/test/unit/util/backtracefilter.rb b/lib/test/unit/util/backtracefilter.rb index 3a423aa6a..7ebec2dfe 100644 --- a/lib/test/unit/util/backtracefilter.rb +++ b/lib/test/unit/util/backtracefilter.rb @@ -7,6 +7,7 @@ module Test TESTUNIT_RB_FILE = /\.rb\Z/ def filter_backtrace(backtrace, prefix=nil) + return ["No backtrace"] unless(backtrace) split_p = if(prefix) prefix.split(TESTUNIT_FILE_SEPARATORS) else |