aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/test/test_archive_read_close_twice_open_filename.c
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/test/test_archive_read_close_twice_open_filename.c')
-rw-r--r--libarchive/test/test_archive_read_close_twice_open_filename.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libarchive/test/test_archive_read_close_twice_open_filename.c b/libarchive/test/test_archive_read_close_twice_open_filename.c
index f82539117bcb..9a194fdc4a8b 100644
--- a/libarchive/test/test_archive_read_close_twice_open_filename.c
+++ b/libarchive/test/test_archive_read_close_twice_open_filename.c
@@ -28,10 +28,12 @@ __FBSDID("$FreeBSD$");
DEFINE_TEST(test_archive_read_close_twice_open_filename)
{
+ const char *filename = "empty.file";
struct archive* a = archive_read_new();
+ assertMakeFile(filename, 0644, "");
assertEqualInt(ARCHIVE_OK, archive_read_support_format_empty(a));
- assertEqualInt(ARCHIVE_OK, archive_read_open_filename(a, 0, 0));
+ assertEqualInt(ARCHIVE_OK, archive_read_open_filename(a, filename, 0));
assertEqualInt(0, archive_errno(a));
assertEqualString(NULL, archive_error_string(a));