aboutsummaryrefslogtreecommitdiffstats
path: root/bootstraptest/runner.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-14 09:45:46 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-14 09:45:46 +0000
commit0c801d657a963290c0cd269166bdbf79586b47ec (patch)
treeca1adc5fc90b402663c45c5be87706ebafc610d2 /bootstraptest/runner.rb
parent7d7125e7b473beadce9767339603cac0a03ada07 (diff)
downloadruby-0c801d657a963290c0cd269166bdbf79586b47ec.tar.gz
* 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
Diffstat (limited to 'bootstraptest/runner.rb')
-rw-r--r--bootstraptest/runner.rb6
1 files changed, 6 insertions, 0 deletions
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}"