Module: monitoring-plugins Branch: master Commit: 8e8d2d42433a97a6b5a09b01cdd4cfbfc5807cbe Author: Sven Nierlein <sven.nierl...@consol.de> Date: Thu Jul 31 13:48:13 2014 +0200 URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=8e8d2d4
tests: negate test fails when not run from plugins folder Signed-off-by: Sven Nierlein <sven.nierl...@consol.de> --- plugins/t/negate.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 $res = NPTest->testCmd( "./negate '$PWD/check_dummy 0' 'a dummy okay'" ); is( $res->output, "No data returned from command", "Bad command, as expected (trying to execute './check_dummy 0')"); -$res = NPTest->testCmd( './negate $PWD/check_dummy 0 \'$$ a dummy okay\'' ); +$res = NPTest->testCmd( './negate '.$PWD.'/check_dummy 0 \'$$ a dummy okay\'' ); is( $res->output, 'OK: $$ a dummy okay', 'Proves that $$ is not being expanded again' ); my %state = (