@matheusbsbs / matheus-bagliano / commits / 5f9ffff308
Fork 0

rehabilitate some t5302 tests on 32-bit off_t machines

Commit 8ed2fca458d085f12c3c6808ef4ddab6aa40ef14 was a bit draconian in skipping certain tests which should be perfectly valid even on platform with a 32-bit off_t. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nicolas Pitre committed Nov 15, 2007 at 12:24 UTC 5f9ffff308845e2439670ec3cb2c12f4865cf430
1 file changed +2 -7
t/t5302-pack-index.sh
+2 -7
@@ -129,17 +129,15 @@ test_expect_failure \
129 '[index v1] 6) newly created pack is BAD !' \
130 'git verify-pack -v "test-4-${pack1}.pack"'
131
132 -test "$have_64bits" &&
132 test_expect_success \
133 '[index v2] 1) stream pack to repository' \
134 'rm -f .git/objects/pack/* &&
136 - git-index-pack --index-version=2,0x40000 --stdin < "test-1-${pack1}.pack" &&
135 + git-index-pack --index-version=2 --stdin < "test-1-${pack1}.pack" &&
136 git prune-packed &&
137 git count-objects | ( read nr rest && test "$nr" -eq 1 ) &&
138 cmp "test-1-${pack1}.pack" ".git/objects/pack/pack-${pack1}.pack" &&
140 - cmp "test-3-${pack1}.idx" ".git/objects/pack/pack-${pack1}.idx"'
139 + cmp "test-2-${pack1}.idx" ".git/objects/pack/pack-${pack1}.idx"'
140
142 -test "$have_64bits" &&
141 test_expect_success \
142 '[index v2] 2) create a stealth corruption in a delta base reference' \
143 '# this test assumes a delta smaller than 16 bytes at the end of the pack
@@ -152,17 +150,14 @@ test_expect_success \
150 bs=1 count=20 conv=notrunc &&
151 git cat-file blob "$delta_sha1" > blob_4 )'
152
155 -test "$have_64bits" &&
153 test_expect_failure \
154 '[index v2] 3) corrupted delta happily returned wrong data' \
155 'cmp blob_3 blob_4'
156
160 -test "$have_64bits" &&
157 test_expect_failure \
158 '[index v2] 4) confirm that the pack is actually corrupted' \
159 'git fsck --full $commit'
160
165 -test "$have_64bits" &&
161 test_expect_failure \
162 '[index v2] 5) pack-objects refuses to reuse corrupted data' \
163 'git pack-objects test-5 <obj-list'