aboutsummaryrefslogtreecommitdiff
path: root/plugins/t
diff options
context:
space:
mode:
authorGravatar Sven Nierlein <Sven.Nierlein@consol.de> 2014-07-31 13:31:11 +0200
committerGravatar Sven Nierlein <Sven.Nierlein@consol.de> 2014-07-31 13:47:19 +0200
commit559d11b1fbb4fee3b62b762fbbd3cfc6f138f37e (patch)
treed342962da4188b74591acd6d50ef39f4be1e21c4 /plugins/t
parent18a9562daecd844d62da5cad1ddcab3f9d0eca57 (diff)
downloadmonitoring-plugins-559d11b1fbb4fee3b62b762fbbd3cfc6f138f37e.tar.gz
tests: get current directory the perl way
instead of hoping to have it in the environment. This at least broke tests on solaris. Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
Diffstat (limited to 'plugins/t')
-rw-r--r--plugins/t/negate.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/t/negate.t b/plugins/t/negate.t
index f18acc39..9f0221a5 100644
--- a/plugins/t/negate.t
+++ b/plugins/t/negate.t
@@ -6,6 +6,7 @@
use strict;
use Test::More;
+use Cwd;
use NPTest;
# 15 tests in the first part, 9 in timeout tests and 2 * 32 in the last loops
@@ -13,7 +14,7 @@ plan tests => 88;
my $res;
-my $PWD = $ENV{PWD};
+my $PWD = getcwd();
$res = NPTest->testCmd( "./negate" );
is( $res->return_code, 3, "Not enough parameters");