Add test that creation/modification dates of copy differ from original

This commit is contained in:
Richard Frith-Macdonald 2020-07-29 14:58:21 +01:00
parent 17a138f74d
commit cf3fc4648c

View file

@ -152,7 +152,13 @@ int main()
str2 = [[NSString alloc] initWithData: dat1 encoding: 1];
PASS([str1 isEqual: str2],"NSFileManager copied file contents match");
}
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([mgr movePath: @"NSFMFile"
toPath: @"NSFMMove"
handler: handler],