From 5e633124e4573c98d5457144e401fb0d22e45ae6 Mon Sep 17 00:00:00 2001 From: Matthias Eble Date: Tue, 10 Jul 2007 20:18:55 +0000 Subject: Check_disk now calls stat() for all filesystems to check. Check_disk prints an strerror() message if the call of stat() fails. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1754 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/t/check_disk.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/t') diff --git a/plugins/t/check_disk.t b/plugins/t/check_disk.t index 5c6aa39a..4f5c4bc4 100644 --- a/plugins/t/check_disk.t +++ b/plugins/t/check_disk.t @@ -275,7 +275,7 @@ TODO: { $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; -- cgit v1.2.3