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 <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jonathan Tan committed
Nov 1, 2024 at 13:11 UTC
d9e24ce2ca07db19eec6af332a7244eafbd82f67
1 file changed
+5
-5
t/t5300-pack-object.sh
+5
-5
@@ -156,6 +156,11 @@ test_expect_success 'pack without delta' '
156
check_deltas stderr = 0
157
'
158
159
+test_expect_success 'negative window clamps to 0' '
160
+ git pack-objects --progress --window=-1 neg-window <obj-list 2>stderr &&
161
+ check_deltas stderr = 0
162
+'
163
+
164
test_expect_success 'pack-objects with bogus arguments' '
165
test_must_fail git pack-objects --window=0 test-1 blah blah <obj-list
166
'
@@ -630,11 +635,6 @@ test_expect_success 'prefetch objects' '
635
test_line_count = 1 donelines
636
'
637
633
-test_expect_success 'negative window clamps to 0' '
634
- git pack-objects --progress --window=-1 neg-window <obj-list 2>stderr &&
635
- check_deltas stderr = 0
636
-'
637
-
638
for hash in sha1 sha256
639
do
640
test_expect_success "verify-pack with $hash packfile" '