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

ruby-changes:40091

From: nobu <ko1@a...>
Date: Sun, 18 Oct 2015 11:41:05 +0900 (JST)
Subject: [ruby-changes:40091] nobu:r52172 (trunk): test_require.rb: test conditions

nobu	2015-10-18 11:40:59 +0900 (Sun, 18 Oct 2015)

  New Revision: 52172

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

  Log:
    test_require.rb: test conditions
    
    * test/ruby/test_require.rb (loading_fifo): check by if FIFO is
      available or not, instead of platform names.

  Modified files:
    trunk/test/ruby/test_require.rb
Index: test/ruby/test_require.rb
===================================================================
--- test/ruby/test_require.rb	(revision 52171)
+++ test/ruby/test_require.rb	(revision 52172)
@@ -707,7 +707,7 @@ class TestRequire < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_require.rb#L707
       end
       END
     }
-  end unless /mswin|mingw/ =~ RUBY_PLATFORM
+  end if defined?(File.mkfifo)
 
   def test_loading_fifo_threading_success
     Tempfile.create(%w'fifo .rb') {|f|
@@ -731,9 +731,7 @@ class TestRequire < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_require.rb#L731
       assert_equal(C1::FOO, "foo")
     INPUT
     }
-
-  end unless /mswin|mingw/ =~ RUBY_PLATFORM
-
+  end if defined?(File.mkfifo)
 
   def test_throw_while_loading
     Tempfile.create(%w'bug-11404 .rb') do |f|

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

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