summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-06-30 11:31:54 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-06-30 11:31:54 +0200
commit3e920038ecd8cc123b0c8dd957f94a8e1a616c0c (patch)
tree292e08fb8ccdd5fab5f5068a37fe39a32fc3b8a0 /tests
parent8c449c503f4c37f72089a0dc50e00631a22ed12a (diff)
tar reader: also store condensed size of sparse files
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests')
-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);