index 1d0c034e5b0d157306e05814c2517db63e9beeab..d71c83a274016e9d752ed8c1d6169cc83f5bee38 100644 (file)
use NPTest;
if (-x "./check_procs") {
- plan tests => 48;
+ plan tests => 50;
} else {
plan skip_all => "No check_procs compiled";
}
is( $result->return_code, 2, "Checking against RSS > 70MB" );
is( $result->output, 'RSS CRITICAL: 5 crit, 0 warn out of 95 processes [WindowServer, SystemUIServer, Safari, Mail, Safari]', "Output correct" );
+$result = NPTest->testCmd( "$command --ereg-argument-array='(nosuchname|nosuch2name)'" );
+is( $result->return_code, 0, "Checking no pipe symbol in output" );
+is( $result->output, "PROCS OK: 0 processes with regex args '(nosuchname,nosuch2name)'", "Output correct" );
+