add delay to be clear file date is in past before we copy it

This commit is contained in:
Richard Frith-Macdonald 2020-07-31 09:10:41 +01:00
parent c1d4629a83
commit 5408a71964

View file

@ -6,6 +6,7 @@
#import <Foundation/NSProcessInfo.h>
#import <Foundation/NSPathUtilities.h>
#import <Foundation/NSError.h>
#import <Foundation/NSThread.h>
#import <Foundation/NSURL.h>
@interface MyHandler : NSObject
@ -140,7 +141,7 @@ int main()
str2 = [[NSString alloc] initWithData: dat1 encoding: 1];
PASS([str1 isEqualToString: str2], "NSFileManager file contents match");
}
[NSThread sleepForTimeInterval: 1.0]; // So date of file is clearly in past
[handler reset];
PASS([mgr copyPath: @"NSFMFile"
toPath: @"NSFMCopy"