aboutsummaryrefslogtreecommitdiff
path: root/plugins-scripts/t/check_file_age.t
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-scripts/t/check_file_age.t')
-rw-r--r--plugins-scripts/t/check_file_age.t7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins-scripts/t/check_file_age.t b/plugins-scripts/t/check_file_age.t
index 384c276b..a5156491 100644
--- a/plugins-scripts/t/check_file_age.t
+++ b/plugins-scripts/t/check_file_age.t
@@ -5,7 +5,7 @@
#
use strict;
-use Test::More tests => 15;
+use Test::More tests => 16;
use NPTest;
my $successOutput = '/^FILE_AGE OK: /';
@@ -58,6 +58,11 @@ $result = NPTest->testCmd(
cmp_ok( $result->return_code, '==', 0, "Checking file size" );
$result = NPTest->testCmd(
+ "./check_file_age -f /non/existent --ignore-missing"
+ );
+cmp_ok( $result->return_code, '==', 0, "Honours --ignore-missing" );
+
+$result = NPTest->testCmd(
"./check_file_age -f $temp_file -c 1000 -W 101"
);
cmp_ok( $result->return_code, '==', 1, "One byte too short" );