diff options
Diffstat (limited to 'tests/tar_big_file.c')
-rw-r--r-- | tests/tar_big_file.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/tar_big_file.c b/tests/tar_big_file.c index b949f60..66e4690 100644 --- a/tests/tar_big_file.c +++ b/tests/tar_big_file.c @@ -9,9 +9,10 @@ int main(void) { tar_header_decoded_t hdr; - FILE *fp; + istream_t *fp; - fp = test_open_read(STRVALUE(TESTPATH) "/" STRVALUE(TESTFILE)); + fp = istream_open_file(STRVALUE(TESTPATH) "/" STRVALUE(TESTFILE)); + TEST_NOT_NULL(fp); TEST_ASSERT(read_header(fp, &hdr) == 0); TEST_EQUAL_UI(hdr.sb.st_mode, S_IFREG | 0644); TEST_EQUAL_UI(hdr.sb.st_uid, 01750); @@ -22,6 +23,6 @@ int main(void) TEST_STR_EQUAL(hdr.name, "big-file.bin"); TEST_ASSERT(!hdr.unknown_record); clear_header(&hdr); - fclose(fp); + sqfs_destroy(fp); return EXIT_SUCCESS; } |