diff options
author | Sven Nierlein <Sven.Nierlein@consol.de> | 2014-07-31 13:48:13 +0200 |
---|---|---|
committer | Sven Nierlein <Sven.Nierlein@consol.de> | 2014-07-31 14:56:16 +0200 |
commit | 8e8d2d42433a97a6b5a09b01cdd4cfbfc5807cbe (patch) | |
tree | 24c17a5f94726d46cb62a88bab168b8ac0aecbdd /plugins/t/negate.t | |
parent | 559d11b1fbb4fee3b62b762fbbd3cfc6f138f37e (diff) | |
download | monitoring-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/t/negate.t')
-rw-r--r-- | plugins/t/negate.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/t/negate.t b/plugins/t/negate.t index 9f0221a5..d96a109b 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'" ); |
52 | is( $res->output, "No data returned from command", "Bad command, as expected (trying to execute './check_dummy 0')"); | 52 | is( $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\'' ); |
55 | is( $res->output, 'OK: $$ a dummy okay', 'Proves that $$ is not being expanded again' ); | 55 | is( $res->output, 'OK: $$ a dummy okay', 'Proves that $$ is not being expanded again' ); |
56 | 56 | ||
57 | my %state = ( | 57 | my %state = ( |