summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-21 22:36:13 +0000
committerntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-21 22:36:13 +0000
commitdc32688f002f36a4aed31525df0a9a4eff239c60 (patch)
treea20ac6644bed7a9399e44513bf0abe35967b2eaa /test
parent35dcc04709bd5a5564145ae34878b84e9b1406cb (diff)
downloadruby-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 'test')
-rw-r--r--test/testunit/util/test_backtracefilter.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/testunit/util/test_backtracefilter.rb b/test/testunit/util/test_backtracefilter.rb
index eeabb91d2..d4e40ea6a 100644
--- a/test/testunit/util/test_backtracefilter.rb
+++ b/test/testunit/util/test_backtracefilter.rb
@@ -32,7 +32,10 @@ backtrace = [%q{tc_thing.rb:4:in 'a'},
%q{C:\some\old\path\test\unit\testcase.rb:44:in 'run'},
%q{C:\some\old\path\test\unit.rb:44:in 'run'}]
assert_equal(backtrace, filter_backtrace(backtrace, %q{C:\some\old\path\test\unit}), "Should filter out all TestUnit-specific lines")
+ end
+ def test_nil_backtrace
+ assert_equal(["No backtrace"], filter_backtrace(nil))
end
end
end