diff options
author | Sven Nierlein <Sven.Nierlein@consol.de> | 2014-07-31 13:31:11 +0200 |
---|---|---|
committer | Sven Nierlein <Sven.Nierlein@consol.de> | 2014-07-31 13:47:19 +0200 |
commit | 559d11b1fbb4fee3b62b762fbbd3cfc6f138f37e (patch) | |
tree | d342962da4188b74591acd6d50ef39f4be1e21c4 | |
parent | 18a9562daecd844d62da5cad1ddcab3f9d0eca57 (diff) | |
download | monitoring-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>
-rw-r--r-- | plugins/t/negate.t | 3 |
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 @@ | |||
6 | 6 | ||
7 | use strict; | 7 | use strict; |
8 | use Test::More; | 8 | use Test::More; |
9 | use Cwd; | ||
9 | use NPTest; | 10 | use 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 | ||
14 | my $res; | 15 | my $res; |
15 | 16 | ||
16 | my $PWD = $ENV{PWD}; | 17 | my $PWD = getcwd(); |
17 | 18 | ||
18 | $res = NPTest->testCmd( "./negate" ); | 19 | $res = NPTest->testCmd( "./negate" ); |
19 | is( $res->return_code, 3, "Not enough parameters"); | 20 | is( $res->return_code, 3, "Not enough parameters"); |