From c3c528952d593dea59c2b6dcee05bab625db307a Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Mon, 16 Mar 2009 18:49:51 -0500 Subject: [PATCH] Fix check_snmp test on solaris --- plugins/t/check_snmp.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/t/check_snmp.t b/plugins/t/check_snmp.t index c2c965d..6d3dcb4 100644 --- a/plugins/t/check_snmp.t +++ b/plugins/t/check_snmp.t @@ -94,7 +94,7 @@ SKIP: { skip "no non invalid host defined", 2 if ( ! $hostname_invalid ); $res = NPTest->testCmd( "./check_snmp -H $hostname_invalid -C $snmp_community -o system.sysUpTime.0 -w 1: -c 1:"); cmp_ok( $res->return_code, '==', 3, "Exit UNKNOWN with non responsive host" ); - like($res->output, '/External command error: .*(nosuchhost|Name or service not known)/', "String matches invalid host"); + like($res->output, '/External command error: .*(nosuchhost|Name or service not known|Unknown host)/', "String matches invalid host"); } } -- 2.30.2