X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft9501-gitweb-standalone-http-status.sh;h=31076edc5bd45261f5874b10dad6376e49fb9002;hb=3ecd0c8b4d9e245e255aa4c061d6a474eb571298;hp=26102ee9b0c36a87ba17a75b0ca644cc42e2c1c4;hpb=7ddd582402aa926d5ec33d914ccc8bfaf1b15c06;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