]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Use assertEqualInt instead of assert.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 17 Nov 2009 13:47:37 +0000 (08:47 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 17 Nov 2009 13:47:37 +0000 (08:47 -0500)
Suggested by Tim

SVN-Revision: 1668

libarchive/test/test_read_large.c
tar/test/test_copy.c

index 0af6c1c7c3b7fa77ca96e21036a58d8f27551143..654ca7606f91579b263e33cd2365b878ffd51610 100644 (file)
@@ -83,7 +83,8 @@ DEFINE_TEST(test_read_large)
        assertA(0 == archive_read_finish(a));
 
        f = fopen(tmpfilename, "rb");
-       assert(sizeof(testdatacopy) == fread(testdatacopy, 1, sizeof(testdatacopy), f));
+       assertEqualInt(sizeof(testdatacopy),
+           fread(testdatacopy, 1, sizeof(testdatacopy), f));
        fclose(f);
        assert(0 == memcmp(testdata, testdatacopy, sizeof(testdata)));
 }
index 32417b7ab7df18cb276bebe5358267bf271a48fc..69112900e536c0d0035803f7664f556cade94b59 100644 (file)
@@ -144,7 +144,7 @@ create_tree(void)
        }
 
        assertMakeDir("original", 0775);
-       assert(0 == chdir("original"));
+       assertEqualInt(0, chdir("original"));
        LOOP_MAX = compute_loop_max();
 
        assertMakeDir("f", 0775);
@@ -181,7 +181,7 @@ create_tree(void)
                assertMakeDir(buff, 0775);
        }
 
-       assert(0 == chdir(".."));
+       assertEqualInt(0, chdir(".."));
 }
 
 #define LIMIT_NONE 200
@@ -356,7 +356,7 @@ copy_ustar(void)
        assertEmptyFile("unpack.out");
 
        verify_tree(LIMIT_USTAR);
-       assert(0 == chdir("../.."));
+       assertEqualInt(0, chdir("../.."));
 }
 
 DEFINE_TEST(test_copy)