From: Jonathan Tan Date: Fri, 1 Nov 2024 20:11:47 +0000 (-0700) Subject: t5300: move --window clamp test next to unclamped X-Git-Tag: v2.48.0-rc0~58^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d9e24ce2ca07db19eec6af332a7244eafbd82f67;p=thirdparty%2Fgit.git t5300: move --window clamp test next to unclamped A subsequent commit will change the behavior of "git index-pack --promisor", which is exercised in "build pack index for an existing pack", causing the unclamped and clamped versions of the --window test to exhibit different behavior. Move the clamp test closer to the unclamped test that it references. Signed-off-by: Jonathan Tan Signed-off-by: Junio C Hamano --- diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh index 3b9dae331a..aff164ddf8 100755 --- a/t/t5300-pack-object.sh +++ b/t/t5300-pack-object.sh @@ -156,6 +156,11 @@ test_expect_success 'pack without delta' ' check_deltas stderr = 0 ' +test_expect_success 'negative window clamps to 0' ' + git pack-objects --progress --window=-1 neg-window stderr && + check_deltas stderr = 0 +' + test_expect_success 'pack-objects with bogus arguments' ' test_must_fail git pack-objects --window=0 test-1 blah blah stderr && - check_deltas stderr = 0 -' - for hash in sha1 sha256 do test_expect_success "verify-pack with $hash packfile" '