]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Rename read_open_memory2 to read_open_memory_minimal, which is
authorTim Kientzle <kientzle@gmail.com>
Mon, 23 Jan 2012 05:06:04 +0000 (00:06 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 18 Mar 2012 23:44:09 +0000 (08:44 +0900)
a bit more descriptive.

SVN-Revision: 4192

libarchive/test/read_open_memory.c
libarchive/test/test.h
libarchive/test/test_compat_zip.c
libarchive/test/test_read_pax_truncated.c
libarchive/test/test_read_position.c

index d7e203b20e8d272e4087b2f40f40d1a32d089c22..0bf6f754f6d95b754777d6e849e526610fee5190 100644 (file)
@@ -68,7 +68,7 @@ read_open_memory(struct archive *a, void *buff, size_t size, size_t read_size)
  * that internals work correctly with just the minimal entry points.
  */
 int
-read_open_memory2(struct archive *a, void *buff, size_t size, size_t read_size)
+read_open_memory_minimal(struct archive *a, void *buff, size_t size, size_t read_size)
 {
        return read_open_memory_internal(a, buff, size, read_size, 1);
 }
index 4c82ece92d452527269262e8f38d4f9d020dbcbb..994af69692b05b54004f2d53c6efc453c62efdaa 100644 (file)
@@ -289,8 +289,8 @@ const char *testworkdir;
 
 /* Special customized read-from-memory interface. */
 int read_open_memory(struct archive *, void *, size_t, size_t);
-/* "2" version exercises a slightly different set of libarchive APIs. */
-int read_open_memory2(struct archive *, void *, size_t, size_t);
+/* _minimal version exercises a slightly different set of libarchive APIs. */
+int read_open_memory_minimal(struct archive *, void *, size_t, size_t);
 /* _seek version produces a seekable file. */
 int read_open_memory_seek(struct archive *, void *, size_t, size_t);
 
index e389c59ddbf597fd769d3462ecf6db5e52aa0795..ece62251a87245ea809299ce4f6c1986f72048ff 100644 (file)
@@ -420,7 +420,7 @@ test_compat_zip_7(void)
        for (i = 1; i < 1000; ++i) {
                assert((a = archive_read_new()) != NULL);
                assertEqualIntA(a, ARCHIVE_OK, archive_read_support_format_zip(a));
-               assertEqualIntA(a, ARCHIVE_OK, read_open_memory2(a, p, s, i));
+               assertEqualIntA(a, ARCHIVE_OK, read_open_memory_minimal(a, p, s, i));
 
                assertEqualIntA(a, ARCHIVE_OK, archive_read_next_header(a, &ae));
                assertEqualIntA(a, ARCHIVE_OK, archive_read_data_skip(a));
index 7350c58a185c16d87e4416708fc208d75dfb065e..7c1ba6c1e2abdd9e3eec7891acf57aac09e5b775 100644 (file)
@@ -71,10 +71,10 @@ DEFINE_TEST(test_read_pax_truncated)
                assertEqualIntA(a, ARCHIVE_OK, archive_read_support_filter_all(a));
                /* If it's truncated very early, the file type detection should fail. */
                if (i < 512) {
-                       assertEqualIntA(a, ARCHIVE_FATAL, read_open_memory2(a, buff, i, 13));
+                       assertEqualIntA(a, ARCHIVE_FATAL, read_open_memory_minimal(a, buff, i, 13));
                        goto wrap_up;
                } else {
-                       assertEqualIntA(a, ARCHIVE_OK, read_open_memory2(a, buff, i, 13));
+                       assertEqualIntA(a, ARCHIVE_OK, read_open_memory_minimal(a, buff, i, 13));
                }
 
                /* If it's truncated in a header, the header read should fail. */
index e010785bd5b2f8ab1f6ceaa093500876342de788..f245563f4c2a12edc938d7a53295655fb2c600a3 100644 (file)
@@ -105,7 +105,7 @@ DEFINE_TEST(test_read_position)
        /* Read the archive back without a skip function. */
        assert(NULL != (a = archive_read_new()));
        assertA(0 == archive_read_support_format_tar(a));
-       assertA(0 == read_open_memory2(a, buff, sizeof(buff), 512));
+       assertA(0 == read_open_memory_minimal(a, buff, sizeof(buff), 512));
        verify_read_positions(a);
        archive_read_free(a);