SF.net SVN: nagiosplug: [1865] nagiosplug/trunk/plugins/t/check_ntp.t

[email protected]
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
Revision: 1865
          http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=1865&view=rev
Author:   dermoth
Date:     2007-12-11 05:54:23 -0800 (Tue, 11 Dec 2007)

Log Message:
-----------
D'oh! single escape will be handled by Perl....

Modified Paths:
--------------
    nagiosplug/trunk/plugins/t/check_ntp.t

Modified: nagiosplug/trunk/plugins/t/check_ntp.t
===================================================================
--- nagiosplug/trunk/plugins/t/check_ntp.t	2007-12-11 13:31:22 UTC (rev 1864)
+++ nagiosplug/trunk/plugins/t/check_ntp.t	2007-12-11 13:54:23 UTC (rev 1865)
@@ -97,13 +97,13 @@
 		like( $res->output, $ntp_okmatch2, "$plugin: Output match OK with jitter and stratum" );
 
 		$res = NPTest->testCmd(
-			"./$plugin -H $ntp_service -w 1000 -c 2000 -W \~:-1 -C 21 -j 100000 -k 200000"
+			"./$plugin -H $ntp_service -w 1000 -c 2000 -W \\~:-1 -C 21 -j 100000 -k 200000"
 			);
 		cmp_ok( $res->return_code, '==', 1, "$plugin: Warning NTP result with jitter and stratum check" );
 		like( $res->output, $ntp_warnmatch2, "$plugin: Output match WARNING with jitter and stratum" );
 
 		$res = NPTest->testCmd(
-			"./$plugin -H $ntp_service -w 1000 -c 2000 -W 20 -C 21 -j 100000 -k \~:-1"
+			"./$plugin -H $ntp_service -w 1000 -c 2000 -W 20 -C 21 -j 100000 -k \\~:-1"
 			);
 		cmp_ok( $res->return_code, '==', 2, "$plugin: Critical NTP result with jitter and stratum check" );
 		like( $res->output, $ntp_critmatch2, "$plugin: Output match CRITICAL with jitter and stratum" );


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.