summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2007-12-11 13:54:23 (GMT)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2007-12-11 13:54:23 (GMT)
commit27627ee6c20d57096ee9364b144f59180a96c3ac (patch)
treecb695e2d42829b45c727a96fe0f68f7555e87cba
parent8cb50065632541ea83097d02182385910ee37a8c (diff)
downloadmonitoring-plugins-27627ee6c20d57096ee9364b144f59180a96c3ac.tar.gz
D'oh! single escape will be handled by Perl....
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1865 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--plugins/t/check_ntp.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/t/check_ntp.t b/plugins/t/check_ntp.t
index 01a890e..4f86ab9 100644
--- a/plugins/t/check_ntp.t
+++ b/plugins/t/check_ntp.t
@@ -97,13 +97,13 @@ foreach my $plugin (@PLUGINS2) {
97 like( $res->output, $ntp_okmatch2, "$plugin: Output match OK with jitter and stratum" ); 97 like( $res->output, $ntp_okmatch2, "$plugin: Output match OK with jitter and stratum" );
98 98
99 $res = NPTest->testCmd( 99 $res = NPTest->testCmd(
100 "./$plugin -H $ntp_service -w 1000 -c 2000 -W \~:-1 -C 21 -j 100000 -k 200000" 100 "./$plugin -H $ntp_service -w 1000 -c 2000 -W \\~:-1 -C 21 -j 100000 -k 200000"
101 ); 101 );
102 cmp_ok( $res->return_code, '==', 1, "$plugin: Warning NTP result with jitter and stratum check" ); 102 cmp_ok( $res->return_code, '==', 1, "$plugin: Warning NTP result with jitter and stratum check" );
103 like( $res->output, $ntp_warnmatch2, "$plugin: Output match WARNING with jitter and stratum" ); 103 like( $res->output, $ntp_warnmatch2, "$plugin: Output match WARNING with jitter and stratum" );
104 104
105 $res = NPTest->testCmd( 105 $res = NPTest->testCmd(
106 "./$plugin -H $ntp_service -w 1000 -c 2000 -W 20 -C 21 -j 100000 -k \~:-1" 106 "./$plugin -H $ntp_service -w 1000 -c 2000 -W 20 -C 21 -j 100000 -k \\~:-1"
107 ); 107 );
108 cmp_ok( $res->return_code, '==', 2, "$plugin: Critical NTP result with jitter and stratum check" ); 108 cmp_ok( $res->return_code, '==', 2, "$plugin: Critical NTP result with jitter and stratum check" );
109 like( $res->output, $ntp_critmatch2, "$plugin: Output match CRITICAL with jitter and stratum" ); 109 like( $res->output, $ntp_critmatch2, "$plugin: Output match CRITICAL with jitter and stratum" );