aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_require.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_require.rb')
-rw-r--r--test/ruby/test_require.rb6
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|