1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Refined ioctl error description

This commit is contained in:
Nobuyoshi Nakada 2020-06-11 13:18:28 +09:00
parent c1d1f92e8a
commit a6713a5758
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -20,12 +20,12 @@ describe "IO#ioctl" do
end
end
it "raises an Errno error when ioctl fails" do
it "raises a system call error when ioctl fails" do
File.open(__FILE__, 'r') do |f|
-> {
# TIOCGWINSZ in /usr/include/asm-generic/ioctls.h
f.ioctl 0x5413, nil
}.should raise_error(Errno::ENOTTY)
}.should raise_error(SystemCallError)
end
end
end