mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-10 09:10:08 -04:00
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>
This commit is contained in:
parent
93901d5ff1
commit
4102eaae0e
1 changed files with 1 additions and 0 deletions
|
|
@ -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" );
|
||||
|
|
|
|||
Loading…
Reference in a new issue