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 ++++++ bootstraptest/test_knownbug.rb | 9 ++++----- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'bootstraptest') 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}" diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index 125ad9c0c6..fe3b5ab6cd 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -3,6 +3,10 @@ # So all tests will cause failure. # +# test is not written... +flunk '[ruby-dev:31819] rb_clear_cache_by_class' +flunk '[ruby-dev:31820] valgrind set_trace_func' + assert_equal 'ok', %q{ class X < RuntimeError;end x = [X] @@ -13,11 +17,6 @@ assert_equal 'ok', %q{ end }, '[ruby-core:14537]' -# test is not written... -# * [ruby-dev:31819] rb_clear_cache_by_class -# * [ruby-dev:31820] valgrind set_trace_func - - assert_equal 'ok', %q{ while true *, z = 1 -- cgit v1.2.3