From 0c801d657a963290c0cd269166bdbf79586b47ec Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 14 Jan 2008 09:45:46 +0000 Subject: * bootstraptest/runner.rb: add "flunk" method. * bootstraptest/test_knownbug.rb: fix to use flunk. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/runner.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bootstraptest/runner.rb') diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index fd921f4675..74cb2b9e75 100644 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -237,6 +237,12 @@ rescue Exception => err error err.message, message end +def flunk(message = '') + newtest + $stderr.print 'F' + error message, '' +end + def pretty(src, desc, result) src = src.sub(/\A.*\n/, '') (/\n/ =~ src ? "\n#{adjust_indent(src)}" : src) + " #=> #{desc}" -- cgit v1.2.3