assertA(0 == archive_read_finish(a));
f = fopen(tmpfilename, "rb");
- fread(testdatacopy, 1, sizeof(testdatacopy), f);
+ assert(sizeof(testdatacopy) == fread(testdatacopy, 1, sizeof(testdatacopy), f));
fclose(f);
assert(0 == memcmp(testdata, testdatacopy, sizeof(testdata)));
}
}
assertMakeDir("original", 0775);
- chdir("original");
+ assert(0 == chdir("original"));
LOOP_MAX = compute_loop_max();
assertMakeDir("f", 0775);
assertMakeDir(buff, 0775);
}
- chdir("..");
+ assert(0 == chdir(".."));
}
#define LIMIT_NONE 200
assertEmptyFile("unpack.err");
assertEmptyFile("unpack.out");
- chdir("original");
+ assert(0 == chdir("original"));
verify_tree(LIMIT_USTAR);
- chdir("../..");
+ assert(0 == chdir("../.."));
}
DEFINE_TEST(test_copy)