aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-03-04 22:17:47 -0800
committerJunio C Hamano <gitster@pobox.com>2012-03-04 22:17:47 -0800
commit3ecd0c8b4d9e245e255aa4c061d6a474eb571298 (patch)
treed9ef843146787d554e3e39035c2542aca23022ba /t
parent3fc242f5ab8222745892047d4e481e71540425cd (diff)
parent36612e4daf8b5b5eaf16315aa13c66925f878cd6 (diff)
downloadgit-3ecd0c8b4d9e245e255aa4c061d6a474eb571298.tar.gz
git-3ecd0c8b4d9e245e255aa4c061d6a474eb571298.tar.xz
Merge branch 'jn/maint-gitweb-invalid-regexp' into maint
* jn/maint-gitweb-invalid-regexp: gitweb: Handle invalid regexp in regexp search
Diffstat (limited to 't')
-rwxr-xr-xt/t9501-gitweb-standalone-http-status.sh10
1 files changed, 10 insertions, 0 deletions
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