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:
parent
348d7b096d
commit
7cb20b8fb8
1 changed files with 2 additions and 4 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue