t5300-pack-object: do not compare binary data using test_cmp
Users may set test_cmp to a comparison tool of their liking. The intent is that the tool performs comparison of line-oriented texts. However, t5300 uses it also to compare binary data. Change those tests to use 'cmp'. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Sixt committed
Oct 26, 2013 at 21:17 UTC
ce1a0473e8b5892c27526c0f340b6d440c6f0fff
1 file changed
+5
-5
t/t5300-pack-object.sh
+5
-5
@@ -151,7 +151,7 @@ test_expect_success \
151
git cat-file $t $object || return 1
152
done <obj-list
153
} >current &&
154
- test_cmp expect current'
154
+ cmp expect current'
155
156
test_expect_success \
157
'use packed deltified (REF_DELTA) objects' \
@@ -166,7 +166,7 @@ test_expect_success \
166
git cat-file $t $object || return 1
167
done <obj-list
168
} >current &&
169
- test_cmp expect current'
169
+ cmp expect current'
170
171
test_expect_success \
172
'use packed deltified (OFS_DELTA) objects' \
@@ -181,7 +181,7 @@ test_expect_success \
181
git cat-file $t $object || return 1
182
done <obj-list
183
} >current &&
184
- test_cmp expect current'
184
+ cmp expect current'
185
186
unset GIT_OBJECT_DIRECTORY
187
@@ -195,9 +195,9 @@ test_expect_success 'survive missing objects/pack directory' '
195
rm -fr $GOP &&
196
git index-pack --stdin --keep=test <../test-3-${packname_3}.pack &&
197
test -f $GOP/pack-${packname_3}.pack &&
198
- test_cmp $GOP/pack-${packname_3}.pack ../test-3-${packname_3}.pack &&
198
+ cmp $GOP/pack-${packname_3}.pack ../test-3-${packname_3}.pack &&
199
test -f $GOP/pack-${packname_3}.idx &&
200
- test_cmp $GOP/pack-${packname_3}.idx ../test-3-${packname_3}.idx &&
200
+ cmp $GOP/pack-${packname_3}.idx ../test-3-${packname_3}.idx &&
201
test -f $GOP/pack-${packname_3}.keep
202
)
203
'