Browse Source

Tested on Windows 7.


git-svn-id: https://svn.microneil.com/svn/CodeDweller-Tests/trunk@32 b3372362-9eaa-4a85-aa2b-6faa1ab7c995
master
adeniz 9 years ago
parent
commit
cdd210d302
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      TestFilesystem/testFilesystem.cpp

+ 5
- 1
TestFilesystem/testFilesystem.cpp View File

@@ -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");
}

Loading…
Cancel
Save