Browse Source

check_procs: fix test with sleeping processes

at least on freebsd, there are a processes with state 'S', they always
use two character status.
Sven Nierlein 12 years ago
parent
commit
adc9d71b4b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/t/check_procs.t

+ 1 - 1
plugins/t/check_procs.t

@@ -34,7 +34,7 @@ $result = NPTest->testCmd( "./check_procs -w 0 -c 0" );
 is( $result->return_code, 2, "Checking critical if processes > 0" );
 like( $result->output, '/^PROCS CRITICAL: [0-9]+ process(es)? | procs=[0-9]+;0;0;0;$/', "Output correct" );
 
-$result = NPTest->testCmd( "./check_procs -w 0 -c 0 -s S" );
+$result = NPTest->testCmd( "./check_procs -w 0 -c 0 -s Ss" );
 is( $result->return_code, 2, "Checking critical if sleeping processes" );
 like( $result->output, '/^PROCS CRITICAL: [0-9]+ process(es)? with /', "Output correct" );