mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 17:10:48 +00:00
OSX, unlike Posix, sets the modification and creation dates of a copy to be the same as the original (within floating point limits).
This commit is contained in:
parent
cf3fc4648c
commit
c1d4629a83
1 changed files with 2 additions and 4 deletions
|
@ -154,10 +154,8 @@ int main()
|
|||
}
|
||||
NSDictionary *oa = [mgr fileAttributesAtPath: @"NSFMFile" traverseLink: NO];
|
||||
NSDictionary *na = [mgr fileAttributesAtPath: @"NSFMCopy" traverseLink: NO];
|
||||
PASS(![[oa fileCreationDate] isEqual: [na fileCreationDate]],
|
||||
"copy creation date differs from that of original")
|
||||
PASS(![[oa fileModificationDate] isEqual: [na fileModificationDate]],
|
||||
"copy modification date differs from that of original")
|
||||
PASS(EQ([[oa fileCreationDate] timeIntervalSinceReferenceDate], [[na fileCreationDate] timeIntervalSinceReferenceDate]), "copy creation date equals original")
|
||||
PASS(EQ([[oa fileModificationDate] timeIntervalSinceReferenceDate], [[na fileModificationDate] timeIntervalSinceReferenceDate]), "copy modification date equals original")
|
||||
|
||||
PASS([mgr movePath: @"NSFMFile"
|
||||
toPath: @"NSFMMove"
|
||||
|
|
Loading…
Reference in a new issue