summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Nierlein <Sven.Nierlein@consol.de>2014-07-31 11:31:11 (GMT)
committerSven Nierlein <Sven.Nierlein@consol.de>2014-07-31 11:47:19 (GMT)
commit559d11b1fbb4fee3b62b762fbbd3cfc6f138f37e (patch)
treed342962da4188b74591acd6d50ef39f4be1e21c4
parent18a9562daecd844d62da5cad1ddcab3f9d0eca57 (diff)
downloadmonitoring-plugins-559d11b.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>
-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 f18acc3..9f0221a 100644
--- a/plugins/t/negate.t
+++ b/plugins/t/negate.t
@@ -6,6 +6,7 @@
6 6
7use strict; 7use strict;
8use Test::More; 8use Test::More;
9use Cwd;
9use NPTest; 10use NPTest;
10 11
11# 15 tests in the first part, 9 in timeout tests and 2 * 32 in the last loops 12# 15 tests in the first part, 9 in timeout tests and 2 * 32 in the last loops
@@ -13,7 +14,7 @@ plan tests => 88;
13 14
14my $res; 15my $res;
15 16
16my $PWD = $ENV{PWD}; 17my $PWD = getcwd();
17 18
18$res = NPTest->testCmd( "./negate" ); 19$res = NPTest->testCmd( "./negate" );
19is( $res->return_code, 3, "Not enough parameters"); 20is( $res->return_code, 3, "Not enough parameters");