[前][次][番号順一覧][スレッド一覧]

ruby-changes:61677

From: Nobuyoshi <ko1@a...>
Date: Thu, 11 Jun 2020 14:39:16 +0900 (JST)
Subject: [ruby-changes:61677] a6713a5758 (master): Refined ioctl error description

https://git.ruby-lang.org/ruby.git/commit/?id=a6713a5758

From a6713a5758da2698c0633a658d7bdf77d940c9af Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 11 Jun 2020 13:18:28 +0900
Subject: Refined ioctl error description


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 https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/io/ioctl_spec.rb#L20
       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 v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]