mirror of
https://github.com/git/git.git
synced 2024-11-24 02:17:02 +08:00
t5303: fix printf format string for portability
printf "\x01" is bad; write printf "\001" for portability. Testing with dash is a good way to find this kind of POSIX.1 violation breakages. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
8c1f6f6c57
commit
a2d2c478f3
@ -234,7 +234,7 @@ test_expect_success \
|
||||
'corruption #1 in delta base reference of first delta (OBJ_OFS_DELTA)' \
|
||||
'create_new_pack --delta-base-offset &&
|
||||
git prune-packed &&
|
||||
tr "\000" "\001" </dev/zero | do_corrupt_object $blob_2 2 &&
|
||||
printf "\001" | do_corrupt_object $blob_2 2 &&
|
||||
git cat-file blob $blob_1 > /dev/null &&
|
||||
test_must_fail git cat-file blob $blob_2 > /dev/null &&
|
||||
test_must_fail git cat-file blob $blob_3 > /dev/null'
|
||||
|
Loading…
Reference in New Issue
Block a user