We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getgrnam
1 parent 4138b18 commit 96a5da6Copy full SHA for 96a5da6
test/ruby/test_process.rb
@@ -1693,7 +1693,7 @@ def test_gid_from_name
1693
if g = Etc.getgrgid(Process.gid)
1694
assert_equal(Process.gid, Process::GID.from_name(g.name), g.name)
1695
end
1696
- exc = assert_raise(ArgumentError, SystemCallError) do
+ exc = assert_raise_kind_of(ArgumentError, SystemCallError) do
1697
Process::GID.from_name("\u{4e0d 5b58 5728}") # fu son zai ("absent" in Kanji)
1698
1699
assert_match(/\u{4e0d 5b58 5728}/, exc.message) if exc.is_a?(ArgumentError)
0 commit comments