|
|
@@ -188,6 +188,8 @@ testFileReferenceDir() { |
|
|
|
|
|
|
|
std::string fileName = testDirName + "/" + testFileName;
|
|
|
|
|
|
|
|
std::remove(fileName.c_str());
|
|
|
|
(void) createTestFile(fileName);
|
|
|
|
std::remove(fileName.c_str());
|
|
|
|
|
|
|
|
CodeDweller::FileReference fileRef(testDirName);
|
|
|
@@ -214,7 +216,9 @@ testFileReferenceDir() { |
|
|
|
|
|
|
|
fileRef.refresh();
|
|
|
|
|
|
|
|
size_t diffTimestamp = fileRef.ModTimestamp() - timestamp0;
|
|
|
|
size_t timestamp1 = fileRef.ModTimestamp();
|
|
|
|
size_t diffTimestamp = timestamp1 - timestamp0;
|
|
|
|
|
|
|
|
if ((diffTimestamp < 4) || (6 < diffTimestamp)) {
|
|
|
|
RETURN_FALSE("ModTimestamp() failure");
|
|
|
|
}
|