test_io_console.rb: show failure details
* test/io/console/test_io_console.rb (test_noctty): use `assert_ruby_status` to show failure details. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
765a0d53a1
commit
6add0613a3
@ -262,8 +262,7 @@ class TestIO_Console < Test::Unit::TestCase
|
|||||||
t.close
|
t.close
|
||||||
t2 = Tempfile.new("console")
|
t2 = Tempfile.new("console")
|
||||||
t2.close
|
t2.close
|
||||||
cmd = NOCTTY + [
|
cmd = [*NOCTTY[1..-1],
|
||||||
'--disable=gems',
|
|
||||||
'-e', 'open(ARGV[0], "w") {|f|',
|
'-e', 'open(ARGV[0], "w") {|f|',
|
||||||
'-e', 'STDOUT.reopen(f)',
|
'-e', 'STDOUT.reopen(f)',
|
||||||
'-e', 'STDERR.reopen(f)',
|
'-e', 'STDERR.reopen(f)',
|
||||||
@ -273,7 +272,7 @@ class TestIO_Console < Test::Unit::TestCase
|
|||||||
'-e', 'File.unlink(ARGV[1])',
|
'-e', 'File.unlink(ARGV[1])',
|
||||||
'-e', '}',
|
'-e', '}',
|
||||||
'--', t.path, t2.path]
|
'--', t.path, t2.path]
|
||||||
system(*cmd)
|
assert_ruby_status(cmd, rubybin: NOCTTY[0])
|
||||||
30.times do
|
30.times do
|
||||||
break unless File.exist?(t2.path)
|
break unless File.exist?(t2.path)
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user