diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-18 02:40:59 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-18 02:40:59 +0000 |
commit | 7cb20b8fb88ee839e046151fc8723f9595995b97 (patch) | |
tree | ccdce2e3fa256943a23edb17c7784eadc511b644 /test | |
parent | 348d7b096d973a28389f741fc6b1cc711b78e3ac (diff) | |
download | ruby-7cb20b8fb88ee839e046151fc8723f9595995b97.tar.gz |
test_require.rb: test conditions
* test/ruby/test_require.rb (loading_fifo): check by if FIFO is
available or not, instead of platform names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_require.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index 947b285582..4ccabf2d8c 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -707,7 +707,7 @@ class TestRequire < Test::Unit::TestCase 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 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| |