aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-06-11 13:18:28 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-06-11 14:31:39 +0900
commita6713a5758da2698c0633a658d7bdf77d940c9af (patch)
tree739c1b8f7d23347b72d1b3b9292f69a2ab0ed023
parentc1d1f92e8a18c34f4ef2361d4cd4fdae89d9d2af (diff)
downloadruby-master.tar.gz
Refined ioctl error descriptionHEADmaster
-rw-r--r--spec/ruby/core/io/ioctl_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/io/ioctl_spec.rb b/spec/ruby/core/io/ioctl_spec.rb
index e819a21..8dcd9eb 100644
--- a/spec/ruby/core/io/ioctl_spec.rb
+++ b/spec/ruby/core/io/ioctl_spec.rb
@@ -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