1
0
Fork 0
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:
usa 2015-07-03 12:55:15 +00:00
parent b0ed276516
commit 6282b156ad
2 changed files with 7 additions and 1 deletions

View file

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

View file

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