diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2021-02-18 15:07:36 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-02-18 22:38:16 +0100 |
commit | 6ab3b8b8b8dc94c8e4caefb1d368cc704e70d38b (patch) | |
tree | a7d190a9776dfab282e82f5ff720eca4888f3750 /t/t5319-multi-pack-index.sh | |
parent | commit-graph: use chunk-format read API (diff) | |
download | git-6ab3b8b8b8dc94c8e4caefb1d368cc704e70d38b.tar.xz git-6ab3b8b8b8dc94c8e4caefb1d368cc704e70d38b.zip |
midx: use chunk-format read API
Instead of parsing the table of contents directly, use the chunk-format
API methods read_table_of_contents() and pair_chunk(). In particular, we
can use the return value of pair_chunk() to generate an error when a
required chunk is missing.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rwxr-xr-x | t/t5319-multi-pack-index.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t5319-multi-pack-index.sh b/t/t5319-multi-pack-index.sh index 297de502a9..ad4e878b65 100755 --- a/t/t5319-multi-pack-index.sh +++ b/t/t5319-multi-pack-index.sh @@ -314,12 +314,12 @@ test_expect_success 'verify bad OID version' ' test_expect_success 'verify truncated chunk count' ' corrupt_midx_and_verify $MIDX_BYTE_CHUNK_COUNT "\01" $objdir \ - "missing required" + "final chunk has non-zero id" ' test_expect_success 'verify extended chunk count' ' corrupt_midx_and_verify $MIDX_BYTE_CHUNK_COUNT "\07" $objdir \ - "terminating multi-pack-index chunk id appears earlier than expected" + "terminating chunk id appears earlier than expected" ' test_expect_success 'verify missing required chunk' ' @@ -329,7 +329,7 @@ test_expect_success 'verify missing required chunk' ' test_expect_success 'verify invalid chunk offset' ' corrupt_midx_and_verify $MIDX_BYTE_CHUNK_OFFSET "\01" $objdir \ - "invalid chunk offset (too large)" + "improper chunk offset(s)" ' test_expect_success 'verify packnames out of order' ' |