From 4102eaae0e50d514eb277e12c9ab382aed3a888c Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Fri, 13 Jun 2014 15:57:21 +0200 Subject: 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 --- plugins/tests/check_procs.t | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/tests/check_procs.t') 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" ); -- cgit v1.2.3