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
assert_equal true, io.closed?, "IO#closed? should return true"
end
assert('IO.sysopen("/nonexistent")') do
assert('IO.sysopen("./nonexistent")') do
if Object.const_defined? :Errno
eclass = Errno::ENOENT
else
eclass = RuntimeError
end
assert_raise eclass do
fd = IO.sysopen "/nonexistent"
fd = IO.sysopen "./nonexistent"
IO._sysclose fd
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