diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-10 12:15:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-10 12:15:19 +0000 |
commit | 6add0613a398759bfd3e67b1fe62113e9e03276d (patch) | |
tree | 745bc50a269f1b827914e2c155b645383f548042 /test/io | |
parent | 765a0d53a1c27df63c67817aa9899b8bf216c4da (diff) | |
download | ruby-6add0613a398759bfd3e67b1fe62113e9e03276d.tar.gz |
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
Diffstat (limited to 'test/io')
-rw-r--r-- | test/io/console/test_io_console.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index 96e340ca67..150d7572db 100644 --- a/test/io/console/test_io_console.rb +++ b/test/io/console/test_io_console.rb @@ -262,8 +262,7 @@ class TestIO_Console < Test::Unit::TestCase t.close t2 = Tempfile.new("console") t2.close - cmd = NOCTTY + [ - '--disable=gems', + cmd = [*NOCTTY[1..-1], '-e', 'open(ARGV[0], "w") {|f|', '-e', 'STDOUT.reopen(f)', '-e', 'STDERR.reopen(f)', @@ -273,7 +272,7 @@ class TestIO_Console < Test::Unit::TestCase '-e', 'File.unlink(ARGV[1])', '-e', '}', '--', t.path, t2.path] - system(*cmd) + assert_ruby_status(cmd, rubybin: NOCTTY[0]) 30.times do break unless File.exist?(t2.path) sleep 0.1 |