diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-06 05:36:14 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-06 05:36:14 +0000 |
| commit | 0c863aae25999de2d27c10fc227028a28c84eb4f (patch) | |
| tree | ddabb891866f7554bde49b5bbff454f6b58bb369 /bootstraptest | |
| parent | 2602335c4978050dea92b7487227e919362152b2 (diff) | |
| download | ruby-0c863aae25999de2d27c10fc227028a28c84eb4f.tar.gz ruby-0c863aae25999de2d27c10fc227028a28c84eb4f.tar.xz ruby-0c863aae25999de2d27c10fc227028a28c84eb4f.zip | |
* bootstraptest/runner.rb (assert_equal): add additional
message parameter.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
| -rw-r--r-- | bootstraptest/runner.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index 0dfcae435..0b2f14fbc 100644 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -95,7 +95,7 @@ def exec_test(pathes) end end -def assert_equal(expected, testsrc) +def assert_equal(expected, testsrc, message = '') newtest $stderr.puts "\##{@count} #{@location}" if @verbose result = get_result_string(testsrc) @@ -104,11 +104,11 @@ def assert_equal(expected, testsrc) $stderr.print '.' else $stderr.print 'F' - error pretty(testsrc, expected, result) + error pretty(testsrc, expected, result), message end rescue Exception => err $stderr.print 'E' - error err.message + error err.message, message end def pretty(src, ex, result) @@ -147,8 +147,8 @@ def newtest cleanup_coredump end -def error(msg) - @errbuf.push "\##{@count} #{@location}: #{msg}" +def error(msg, additional_message) + @errbuf.push "\##{@count} #{@location}: #{msg} #{additional_message}" @error += 1 end |
