summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-03 12:55:15 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-03 12:55:15 +0000
commit6282b156ad15d2389778145b4ac4ccfbc64e1227 (patch)
tree9afe22499052f4ef03026983d68ed875a85e9b1b /test
parentb0ed276516f30ea92adc101e051991bf007fa47f (diff)
* 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
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_require.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb
index 6e62bb2352..562f0c13ea 100644
--- a/test/ruby/test_require.rb
+++ b/test/ruby/test_require.rb
@@ -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