[前][次][番号順一覧][スレッド一覧]

ruby-changes:33822

From: nobu <ko1@a...>
Date: Sat, 10 May 2014 21:15:34 +0900 (JST)
Subject: [ruby-changes:33822] nobu:r45903 (trunk): test_io_console.rb: show failure details

nobu	2014-05-10 21:15:19 +0900 (Sat, 10 May 2014)

  New Revision: 45903

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45903

  Log:
    test_io_console.rb: show failure details
    
    * test/io/console/test_io_console.rb (test_noctty): use
      `assert_ruby_status` to show failure details.

  Modified files:
    trunk/test/io/console/test_io_console.rb
Index: test/io/console/test_io_console.rb
===================================================================
--- test/io/console/test_io_console.rb	(revision 45902)
+++ test/io/console/test_io_console.rb	(revision 45903)
@@ -262,8 +262,7 @@ class TestIO_Console < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L262
       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::TestC https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L272
         '-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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]