summaryrefslogtreecommitdiff
path: root/test/resolv/test_dns.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/resolv/test_dns.rb')
-rw-r--r--test/resolv/test_dns.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/resolv/test_dns.rb b/test/resolv/test_dns.rb
index 8236078374..1b44f32807 100644
--- a/test/resolv/test_dns.rb
+++ b/test/resolv/test_dns.rb
@@ -182,7 +182,7 @@ class TestResolvDNS < Test::Unit::TestCase
def test_resolv_conf_by_command
Dir.mktmpdir do |dir|
Dir.chdir(dir) do
- assert_raise(Errno::ENOENT) do
+ assert_raise(Errno::ENOENT, Errno::EINVAL) do
Resolv::DNS::Config.parse_resolv_conf("|echo foo")
end
end