summaryrefslogtreecommitdiff
path: root/tests/tar_sparse_gnu.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tar_sparse_gnu.c')
-rw-r--r--tests/tar_sparse_gnu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tar_sparse_gnu.c b/tests/tar_sparse_gnu.c
index 2f2e1c5..844f7e3 100644
--- a/tests/tar_sparse_gnu.c
+++ b/tests/tar_sparse_gnu.c
@@ -40,6 +40,7 @@ int main(void)
assert(hdr.sb.st_uid == 01750);
assert(hdr.sb.st_gid == 01750);
assert(hdr.sb.st_size == 524288);
+ assert(hdr.sparse_size == 8192);
assert(strcmp(hdr.name, "input.bin") == 0);
assert(!hdr.unknown_record);
@@ -69,6 +70,7 @@ int main(void)
assert(hdr.sb.st_uid == 01750);
assert(hdr.sb.st_gid == 01750);
assert(hdr.sb.st_size == 2097152);
+ assert(hdr.sparse_size == 32768);
assert(strcmp(hdr.name, "input.bin") == 0);
assert(!hdr.unknown_record);