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)));
}
}
assertMakeDir("original", 0775);
- assert(0 == chdir("original"));
+ assertEqualInt(0, chdir("original"));
LOOP_MAX = compute_loop_max();
assertMakeDir("f", 0775);
assertMakeDir(buff, 0775);
}
- assert(0 == chdir(".."));
+ assertEqualInt(0, chdir(".."));
}
#define LIMIT_NONE 200
assertEmptyFile("unpack.out");
verify_tree(LIMIT_USTAR);
- assert(0 == chdir("../.."));
+ assertEqualInt(0, chdir("../.."));
}
DEFINE_TEST(test_copy)