From 8e4c885ee1a8f057fbe550e2d5b85cc8079564df Mon Sep 17 00:00:00 2001 From: Matthias Eble Date: Fri, 1 May 2009 11:16:37 +0200 Subject: Fixed crash from check_nt when -H unspecified or given multiple times (sf.net #2731755, debian #521097) --- plugins/tests/check_nt.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/tests/check_nt.t') 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") { } if (-x "./check_nt") { - plan tests => 4; + plan tests => 5; } else { plan skip_all => "No check_nt compiled"; } @@ -75,3 +75,6 @@ $result = NPTest->testCmd( "$command -v USEDDISKSPACE -l d" ); is( $result->return_code, 3, "USEDDISKSPACE d - invalid"); is( $result->output, "Free disk space : Invalid drive", "Output right" ); +$result = NPTest->testCmd( "./check_nt -v USEDDISKSPACE -l d" ); +is( $result->return_code, 3, "Fail if -H missing"); + -- cgit v1.2.3