nagiosplug/plugins/t check_disk.t,1.21,1.22
Matthias Eble <[email protected]>
| Newsgroups | gmane.network.nagios.plugins.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/nagiosplug/nagiosplug/plugins/t In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv13110/d/t Modified Files: check_disk.t Log Message: Check_disk now calls stat() for all filesystems to check. Check_disk prints an strerror() message if the call of stat() fails. Index: check_disk.t =================================================================== RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/t/check_disk.t,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- check_disk.t 9 May 2007 08:16:44 -0000 1.21 +++ check_disk.t 10 Jul 2007 20:18:55 -0000 1.22 @@ -275,7 +275,7 @@ $result = NPTest->testCmd( "./check_disk -w 0% -c 0% -p /bob" ); cmp_ok( $result->return_code, '==', 2, "Checking /bob - return error because /bob does not exist" ); -cmp_ok( $result->output, 'eq', 'DISK CRITICAL - /bob does not exist', 'Output OK'); +like( $result->output, '/^DISK CRITICAL - /bob is not accessible:.*$/', 'Output OK'); $result = NPTest->testCmd( "./check_disk -w 0% -c 0% -p /" ); my $root_output = $result->output; ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/