mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
7d7125e7b4
commit
0c801d657a
3 changed files with 16 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
|||
Mon Jan 14 18:43:38 2008 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* bootstraptest/runner.rb: add "flunk" method.
|
||||
|
||||
* bootstraptest/test_knownbug.rb: fix to use flunk.
|
||||
|
||||
Mon Jan 14 18:10:59 2008 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* vm.h: remove dangerous assembler sentence.
|
||||
|
|
|
@ -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}"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue