From 616f4d33856a539e89aadfbf75ebb17acc7781da Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 6 Jul 2007 09:23:53 +0000 Subject: * bootstraptest/runner.rb: fix load path. * common.mk: fix "test" rule to run with "btest". * rubytest.rb, sample/test.rb: fix to show tests progress. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sample/test.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sample') diff --git a/sample/test.rb b/sample/test.rb index bda0d1837c..387630d66e 100644 --- a/sample/test.rb +++ b/sample/test.rb @@ -6,7 +6,7 @@ $ntest=0 $failed = 0 def test_check(what) - printf "%s\n", what + STDERR.print "\nsample/test.rb:#{what} " $what = what $testnum = 0 end @@ -16,11 +16,15 @@ def test_ok(cond,n=1) $ntest+=1 where = (st = caller(n)) ? st[0] : "caller error! (n=#{n}, trace=#{caller(0).join(', ')}" if cond + STDERR.print "." printf "ok %d (%s)\n", $testnum, where else + STDERR.print "F" printf "not ok %s %d -- %s\n", $what, $testnum, where $failed+=1 end + STDOUT.flush + STDERR.flush end # make sure conditional operators work -- cgit v1.2.3