summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2014-07-21 13:59:22 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2014-07-21 13:59:22 +0200
commitc5a64eeef8340ff39fafb21878d92139b4c1fb73 (patch)
tree6f9aa1e529c426c0b895c0250ad380d247b6489e
parent3bf812beaee7035b1c08e49b55d7962056931d7b (diff)
downloadmonitoring-plugins-c5a64eeef8340ff39fafb21878d92139b4c1fb73.tar.gz
plugins/t/check_dns.t: Fix Perl warning
Perl said: "Unrecognized escape \d passed through at ./t/check_dns.t line 57."
-rw-r--r--plugins/t/check_dns.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/t/check_dns.t b/plugins/t/check_dns.t
index 4ff553f7..b8858807 100644
--- a/plugins/t/check_dns.t
+++ b/plugins/t/check_dns.t
@@ -54,7 +54,7 @@ cmp_ok( $res->return_code, '==', 2, "Critical threshold passed");
54 54
55$res = NPTest->testCmd("./check_dns -H $hostname_valid -t 5 -w 0 -c 5"); 55$res = NPTest->testCmd("./check_dns -H $hostname_valid -t 5 -w 0 -c 5");
56cmp_ok( $res->return_code, '==', 1, "Warning threshold passed"); 56cmp_ok( $res->return_code, '==', 1, "Warning threshold passed");
57like( $res->output, "/\|time=[\d\.]+s;0.0*;5\.0*;0\.0*/", "Output performance data OK" ); 57like( $res->output, '/\|time=[\d\.]+s;0.0*;5\.0*;0\.0*/', "Output performance data OK" );
58 58
59$res = NPTest->testCmd("./check_dns -H $hostname_invalid -t 1"); 59$res = NPTest->testCmd("./check_dns -H $hostname_invalid -t 1");
60cmp_ok( $res->return_code, '==', 2, "Invalid $hostname_invalid"); 60cmp_ok( $res->return_code, '==', 2, "Invalid $hostname_invalid");