summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSven Nierlein <Sven.Nierlein@consol.de>2014-07-31 11:48:13 (GMT)
committerSven Nierlein <Sven.Nierlein@consol.de>2014-07-31 12:56:16 (GMT)
commit8e8d2d42433a97a6b5a09b01cdd4cfbfc5807cbe (patch)
tree24c17a5f94726d46cb62a88bab168b8ac0aecbdd /plugins
parent559d11b1fbb4fee3b62b762fbbd3cfc6f138f37e (diff)
downloadmonitoring-plugins-8e8d2d42433a97a6b5a09b01cdd4cfbfc5807cbe.tar.gz
tests: negate test fails when not run from plugins folder
Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/t/negate.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/t/negate.t b/plugins/t/negate.t
index 9f0221a..d96a109 100644
--- a/plugins/t/negate.t
+++ b/plugins/t/negate.t
@@ -51,7 +51,7 @@ is( $res->output, "OK: a dummy okay", "The quoted string is passed through to su
51$res = NPTest->testCmd( "./negate '$PWD/check_dummy 0' 'a dummy okay'" ); 51$res = NPTest->testCmd( "./negate '$PWD/check_dummy 0' 'a dummy okay'" );
52is( $res->output, "No data returned from command", "Bad command, as expected (trying to execute './check_dummy 0')"); 52is( $res->output, "No data returned from command", "Bad command, as expected (trying to execute './check_dummy 0')");
53 53
54$res = NPTest->testCmd( './negate $PWD/check_dummy 0 \'$$ a dummy okay\'' ); 54$res = NPTest->testCmd( './negate '.$PWD.'/check_dummy 0 \'$$ a dummy okay\'' );
55is( $res->output, 'OK: $$ a dummy okay', 'Proves that $$ is not being expanded again' ); 55is( $res->output, 'OK: $$ a dummy okay', 'Proves that $$ is not being expanded again' );
56 56
57my %state = ( 57my %state = (