From 6e0661332dd5b9d9be1fa9d427281735e94768af Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 17:59:24 -1000 Subject: Count every ref a count of 0 lists One branch and one tag stood for the whole listing, so a count of 0 that dropped the rest still passed, and -1 is only compared with it. --- tests/t0204-limits.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/t0204-limits.sh b/tests/t0204-limits.sh index 00f9326..1b8ec4b 100755 --- a/tests/t0204-limits.sh +++ b/tests/t0204-limits.sh @@ -111,8 +111,17 @@ test_expect_success 'a negative ref count lists every ref' ' cgit_rc count$n.rc "url=limits/" >summary$n || return 1 done && - grep "log/?h=branch-3" refs0 && - grep "/tag/?h=tag-3" summary0 && + for page in refs0 summary0 + do + test $(grep -c "" $page) = 4 && + test_grep "href=./limits/log/.>master" $page && + test $(grep -c "" $page) = 3 && + for n in 1 2 3 + do + test_grep "href=./limits/log/?h=branch-$n.>" $page && + test_grep "href=./limits/tag/?h=tag-$n.>" $page || return 1 + done || return 1 + done && test_cmp refs0 refs-1 && test_cmp summary0 summary-1 ' -- cgit 2.12.1