diff options
author | Sven Nierlein <Sven.Nierlein@consol.de> | 2014-06-13 15:57:21 +0200 |
---|---|---|
committer | Sven Nierlein <Sven.Nierlein@consol.de> | 2014-06-13 15:57:21 +0200 |
commit | 4102eaae0e50d514eb277e12c9ab382aed3a888c (patch) | |
tree | 138f434af18563413d260d1e93fb941e04146129 /plugins/tests | |
parent | 93901d5ff10cd7fd915cc09d7c496cec49f82ce5 (diff) | |
download | monitoring-plugins-4102eaae0e50d514eb277e12c9ab382aed3a888c.tar.gz |
tests: check_proc tests fail if uid -2 does not map to nobody
so make sure our tests only run if -2 maps to nobody
Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
Diffstat (limited to 'plugins/tests')
-rwxr-xr-x | plugins/tests/check_procs.t | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/tests/check_procs.t b/plugins/tests/check_procs.t index b153d5d2..54d43d9b 100755 --- a/plugins/tests/check_procs.t +++ b/plugins/tests/check_procs.t @@ -50,6 +50,7 @@ SKIP: { SKIP: { skip 'user with uid -2 required', 8 unless getpwuid(-2); + skip 'uid -2 must have name "nobody"', 8 unless getpwuid(-2) eq 'nobody'; $result = NPTest->testCmd( "$command -u -2 -w 2:2" ); is( $result->return_code, 1, "Checking processes with userid=-2" ); |