mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
add delay to be clear file date is in past before we copy it
This commit is contained in:
parent
c1d4629a83
commit
5408a71964
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue