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:
parent
c1d1f92e8a
commit
a6713a5758
1 changed files with 2 additions and 2 deletions
|
@ -20,12 +20,12 @@ describe "IO#ioctl" do
|
||||||
end
|
end
|
||||||
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|
|
File.open(__FILE__, 'r') do |f|
|
||||||
-> {
|
-> {
|
||||||
# TIOCGWINSZ in /usr/include/asm-generic/ioctls.h
|
# TIOCGWINSZ in /usr/include/asm-generic/ioctls.h
|
||||||
f.ioctl 0x5413, nil
|
f.ioctl 0x5413, nil
|
||||||
}.should raise_error(Errno::ENOTTY)
|
}.should raise_error(SystemCallError)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue