From d185991460d72040cc462fde15bdb22fb4eb3bb2 Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Sat, 11 Jun 2005 09:02:34 +0000 Subject: [PATCH] fixed checks for the digest-crash git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@375 152afb58-edef-0310-8abb-c4023f1b3aa9 --- tests/mod-auth.t | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/tests/mod-auth.t b/tests/mod-auth.t index ca0733d5..731f07da 100755 --- a/tests/mod-auth.t +++ b/tests/mod-auth.t @@ -2,7 +2,7 @@ use strict; use IO::Socket; -use Test::More tests => 7; +use Test::More tests => 6; my $basedir = (defined $ENV{'top_builddir'} ? $ENV{'top_builddir'} : '..'); my $srcdir = (defined $ENV{'srcdir'} ? $ENV{'srcdir'} : '.'); @@ -211,26 +211,16 @@ EOF @response = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ); ok(handle_http == 0, 'Basic-Auth: Valid Auth-token'); +## this should not crash @request = ( < 'HTTP/1.0', 'HTTP-Status' => 200 } ); -ok(handle_http == 0, 'Digest-Auth: missing qop'); - -@request = ( < 'HTTP/1.0', 'HTTP-Status' => 200 } ); -ok(handle_http == 0, 'Digest-Auth: broken password'); - +@response = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 401 } ); +ok(handle_http == 0, 'Digest-Auth: missing qop, no crash'); ok(stop_proc == 0, "Stopping lighttpd");