mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_require.rb (TestRequire#test_loading_fifo_threading):
fix previous commit. [Bug #11060] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@51128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b0ed276516
commit
6282b156ad
2 changed files with 7 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
Fri Jul 3 21:54:46 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* test/ruby/test_require.rb (TestRequire#test_loading_fifo_threading):
|
||||
fix previous commit. [Bug #11060]
|
||||
|
||||
Fri Jul 3 19:28:51 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* test/ruby/test_require.rb (TestRequire#test_loading_fifo_threading):
|
||||
|
|
|
|||
|
|
@ -691,7 +691,7 @@ class TestRequire < Test::Unit::TestCase
|
|||
def test_loading_fifo_threading
|
||||
Tempfile.create(%w'fifo .rb') {|f|
|
||||
f.close
|
||||
File.unlink(f.path) rescue nil
|
||||
File.unlink(f.path)
|
||||
File.mkfifo(f.path)
|
||||
assert_separately(["-", f.path], <<-END, timeout: 3)
|
||||
th = Thread.current
|
||||
|
|
@ -699,5 +699,6 @@ class TestRequire < Test::Unit::TestCase
|
|||
assert_raise(IOError) {load(ARGV[0])}
|
||||
END
|
||||
}
|
||||
rescue Errno::ENOENT
|
||||
end unless /mswin|mingw/ =~ RUBY_PLATFORM
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue