Sfoglia il codice sorgente

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>
Sven Nierlein 12 anni fa
parent
commit
4102eaae0e
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      plugins/tests/check_procs.t

+ 1 - 0
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" );