Commit eda9d1a8 authored by Akira Yumiyama's avatar Akira Yumiyama

nonexistent test fixes (for travis-ci)

parent ab9dcc76
...@@ -51,14 +51,14 @@ assert('IO.sysopen, IO#close, IO#closed?') do ...@@ -51,14 +51,14 @@ assert('IO.sysopen, IO#close, IO#closed?') do
assert_equal true, io.closed?, "IO#closed? should return true" assert_equal true, io.closed?, "IO#closed? should return true"
end end
assert('IO.sysopen("/nonexistent")') do assert('IO.sysopen("./nonexistent")') do
if Object.const_defined? :Errno if Object.const_defined? :Errno
eclass = Errno::ENOENT eclass = Errno::ENOENT
else else
eclass = RuntimeError eclass = RuntimeError
end end
assert_raise eclass do assert_raise eclass do
fd = IO.sysopen "/nonexistent" fd = IO.sysopen "./nonexistent"
IO._sysclose fd IO._sysclose fd
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment