From 1be51b107dd08a9575cb07a0a71d459927a85494 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 7 Feb 2023 18:20:20 +0100 Subject: libtar: Add an istream_t implementation The tar_istream_t reads the data from a tar file, having been given the header, and synthesizes zero bytes for sparse regions. Signed-off-by: David Oberhollenzer --- bin/gensquashfs/test/fstree_glob1.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bin') diff --git a/bin/gensquashfs/test/fstree_glob1.c b/bin/gensquashfs/test/fstree_glob1.c index fbcbf91..5f4fdfe 100644 --- a/bin/gensquashfs/test/fstree_glob1.c +++ b/bin/gensquashfs/test/fstree_glob1.c @@ -74,6 +74,13 @@ static void check_hierarchy(tree_node_t *root, bool subdir, bool recursive) TEST_NULL(n->data.dir.children); } + n = n->next; + TEST_NOT_NULL(n); + TEST_STR_EQUAL(n->name, "istream"); + TEST_ASSERT(S_ISDIR(n->mode)); + TEST_ASSERT(n->parent == parentdir); + TEST_NULL(n->data.dir.children); + n = n->next; TEST_NOT_NULL(n); TEST_STR_EQUAL(n->name, "large-mtime"); -- cgit v1.2.3