diff options
Diffstat (limited to 'lib/libarchive/test/test_write_open_memory.c')
-rw-r--r-- | lib/libarchive/test/test_write_open_memory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libarchive/test/test_write_open_memory.c b/lib/libarchive/test/test_write_open_memory.c index fd8c7c8..9042876 100644 --- a/lib/libarchive/test/test_write_open_memory.c +++ b/lib/libarchive/test/test_write_open_memory.c @@ -30,7 +30,7 @@ static unsigned char buff[16384]; DEFINE_TEST(test_write_open_memory) { - int i; + unsigned int i; struct archive *a; struct archive_entry *ae; const char *name="/tmp/test"; @@ -39,7 +39,7 @@ DEFINE_TEST(test_write_open_memory) assert((ae = archive_entry_new()) != NULL); archive_entry_set_pathname(ae, name); archive_entry_set_mode(ae, S_IFREG); - assert(0 == strcmp(archive_entry_pathname(ae), name)); + assertEqualString(archive_entry_pathname(ae), name); /* Try writing with different buffer sizes. */ /* Make sure that we get failure on too-small buffers, success on |