mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Add test that creation/modification dates of copy differ from original
This commit is contained in:
parent
17a138f74d
commit
cf3fc4648c
1 changed files with 7 additions and 1 deletions
|
@ -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],
|
||||
|
|
Loading…
Reference in a new issue