aboutsummaryrefslogtreecommitdiffstats
path: root/bootstraptest/runner.rb
diff options
context:
space:
mode:
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}"