X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft9501-gitweb-standalone-http-status.sh;h=31076edc5bd45261f5874b10dad6376e49fb9002;hb=86c340e08287c0faad8871207787e5819f22a7d5;hp=26102ee9b0c36a87ba17a75b0ca644cc42e2c1c4;hpb=3686aa1caf907d22fe318c28efe93f0e7870ba50;p=git.git diff --git a/t/t9501-gitweb-standalone-http-status.sh b/t/t9501-gitweb-standalone-http-status.sh index 26102ee9b..31076edc5 100755 --- a/t/t9501-gitweb-standalone-http-status.sh +++ b/t/t9501-gitweb-standalone-http-status.sh @@ -134,4 +134,14 @@ our $maxload = undef; EOF +# ---------------------------------------------------------------------- +# invalid arguments + +test_expect_success 'invalid arguments: invalid regexp (in project search)' ' + gitweb_run "a=project_list;s=*\.git;sr=1" && + grep "Status: 400" gitweb.headers && + grep "400 - Invalid.*regexp" gitweb.body +' +test_debug 'cat gitweb.headers' + test_done