1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2015-10-18 02:40:59 +00:00
parent 348d7b096d
commit 7cb20b8fb8

View file

@ -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|