ruby-changes:25961
From: naruse <ko1@a...>
Date: Fri, 30 Nov 2012 10:30:20 +0900 (JST)
Subject: [ruby-changes:25961] naruse:r38018 (trunk): Refix r38002: capture_subprocess_io also doesn't fork
naruse 2012-11-30 10:29:57 +0900 (Fri, 30 Nov 2012) New Revision: 38018 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38018 Log: Refix r38002: capture_subprocess_io also doesn't fork Modified files: trunk/test/dl/test_handle.rb Index: test/dl/test_handle.rb =================================================================== --- test/dl/test_handle.rb (revision 38017) +++ test/dl/test_handle.rb (revision 38018) @@ -159,11 +159,11 @@ # interface, below, should be used, since getpid() is a function and not a # data object.) # --- FreeBSD 8.0 dlsym(3) - out, err = capture_subprocess_io do + assert_in_out_err([], <<-INPUT, /\A#<DL::Handle:0x[0-9a-f]+>\z/) do require 'objspace' print DL::Handle::NEXT.inspect + INPUT end - assert_match(/\A#<DL::Handle:0x[0-9a-f]+>\z/, out + err) end end unless /mswin|mingw/ =~ RUBY_PLATFORM -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/