summaryrefslogtreecommitdiffstats
path: root/plugins/tests
diff options
context:
space:
mode:
authorMatthias Eble <psychotrahe@gmx.de>2009-05-01 11:16:37 +0200
committerMatthias Eble <psychotrahe@gmx.de>2009-05-01 11:16:37 +0200
commit8e4c885ee1a8f057fbe550e2d5b85cc8079564df (patch)
tree2de4062cd40fb0eb506dc22091d58e263de47ff3 /plugins/tests
parentdd52d7e5e7acfd42243bc1ce173a0bf5d62fe347 (diff)
downloadmonitoring-plugins-8e4c885ee1a8f057fbe550e2d5b85cc8079564df.tar.gz
Fixed crash from check_nt when -H unspecified or given multiple times (sf.net #2731755, debian #521097)
Diffstat (limited to 'plugins/tests')
-rwxr-xr-xplugins/tests/check_nt.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/tests/check_nt.t b/plugins/tests/check_nt.t
index d1600c77..223d4933 100755
--- a/plugins/tests/check_nt.t
+++ b/plugins/tests/check_nt.t
@@ -59,7 +59,7 @@ if ($ARGV[0] && $ARGV[0] eq "-d") {
59} 59}
60 60
61if (-x "./check_nt") { 61if (-x "./check_nt") {
62 plan tests => 4; 62 plan tests => 5;
63} else { 63} else {
64 plan skip_all => "No check_nt compiled"; 64 plan skip_all => "No check_nt compiled";
65} 65}
@@ -75,3 +75,6 @@ $result = NPTest->testCmd( "$command -v USEDDISKSPACE -l d" );
75is( $result->return_code, 3, "USEDDISKSPACE d - invalid"); 75is( $result->return_code, 3, "USEDDISKSPACE d - invalid");
76is( $result->output, "Free disk space : Invalid drive", "Output right" ); 76is( $result->output, "Free disk space : Invalid drive", "Output right" );
77 77
78$result = NPTest->testCmd( "./check_nt -v USEDDISKSPACE -l d" );
79is( $result->return_code, 3, "Fail if -H missing");
80