summaryrefslogtreecommitdiff
path: root/bootstraptest/runner.rb
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-06-19 17:53:52 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-06-19 20:39:10 +1200
commit69195fd9b26d4585ad0d13d45ce9fd7b7ebac154 (patch)
tree5a36cf11e5da2d3a695f32f88ad1b1545b32cea8 /bootstraptest/runner.rb
parent3fd83cb6fcc483d2eac0795bc139c521a3a59bd2 (diff)
Show thread and fiber limits as part of bootstrap tests.
Diffstat (limited to 'bootstraptest/runner.rb')
-rwxr-xr-xbootstraptest/runner.rb21
1 files changed, 17 insertions, 4 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index dcaabc9743..3481402401 100755
--- a/bootstraptest/runner.rb
+++ b/bootstraptest/runner.rb
@@ -208,6 +208,9 @@ def exec_test(pathes)
$stderr.puts unless @quiet and @tty and @error == error
end
$stderr.print(erase) if @quiet
+ @errbuf.each do |msg|
+ $stderr.puts msg
+ end
if @error == 0
if @count == 0
$stderr.puts "No tests, no problem"
@@ -216,9 +219,6 @@ def exec_test(pathes)
end
exit true
else
- @errbuf.each do |msg|
- $stderr.puts msg
- end
$stderr.puts "#{@failed}FAIL#{@reset} #{@error}/#{@count} tests failed"
exit false
end
@@ -244,7 +244,7 @@ def show_progress(message = '')
else
$stderr.print "#{@failed}F"
$stderr.printf(" %.3f", t) if @verbose
- $stderr.print "#{@reset}"
+ $stderr.print @reset
$stderr.puts if @verbose
error faildesc, message
unless errout.empty?
@@ -263,6 +263,19 @@ rescue Exception => err
error err.message, message
end
+def show_limit(testsrc, opt = '', **argh)
+ result = get_result_string(testsrc, opt, **argh)
+ $stderr.print '.'
+ $stderr.print @reset
+ $stderr.puts if @verbose
+
+ if @tty
+ $stderr.puts "#{erase}#{result}"
+ else
+ @errbuf.push result
+ end
+end
+
def assert_check(testsrc, message = '', opt = '', **argh)
show_progress(message) {
result = get_result_string(testsrc, opt, **argh)