From a6713a5758da2698c0633a658d7bdf77d940c9af Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 11 Jun 2020 13:18:28 +0900 Subject: Refined ioctl error description --- spec/ruby/core/io/ioctl_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec') diff --git a/spec/ruby/core/io/ioctl_spec.rb b/spec/ruby/core/io/ioctl_spec.rb index e819a217a8..8dcd9eb2c6 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 -- cgit v1.2.3