* bootstraptest/runner.rb (assert_check): don't call newtest.

(assert_equal): call newtest.
  (assert_match): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2007-08-14 16:06:44 +00:00
Родитель b235e8f474
Коммит 333454e4dd
2 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Wed Aug 15 01:05:55 2007 Tanaka Akira <akr@fsij.org>
* bootstraptest/runner.rb (assert_check): don't call newtest.
(assert_equal): call newtest.
(assert_match): ditto.
Tue Aug 14 21:43:39 2007 Tanaka Akira <akr@fsij.org>
* bootstraptest/runner.rb (assert_check): new method.

Просмотреть файл

@ -96,7 +96,6 @@ def exec_test(pathes)
end
def assert_check(testsrc, message = '')
newtest
$stderr.puts "\##{@count} #{@location}" if @verbose
result = get_result_string(testsrc)
check_coredump
@ -113,6 +112,7 @@ rescue Exception => err
end
def assert_equal(expected, testsrc, message = '')
newtest
assert_check(testsrc, message) {|result|
if expected == result
nil
@ -124,6 +124,7 @@ def assert_equal(expected, testsrc, message = '')
end
def assert_match(expected_pattern, testsrc, message = '')
newtest
assert_check(testsrc, message) {|result|
if expected_pattern =~ result
nil