summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--bootstraptest/runner.rb10
2 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 3cbcd31..365991b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Aug 6 14:29:30 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/runner.rb (assert_equal): add additional
+ message parameter.
+
Mon Aug 6 13:34:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (INSNS): not chdir to srcdir.
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index 0dfcae4..0b2f14f 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