mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
check runMode:beforeDate:afor nil date
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39981 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
be79404656
commit
5745b4fc72
1 changed files with 6 additions and 0 deletions
|
@ -64,6 +64,12 @@ int main()
|
|||
ti = [NSDate timeIntervalSinceReferenceDate] - ti;
|
||||
PASS(ti < 0.2, "-runUntilDate: for nil date takes very short time");
|
||||
|
||||
ti = [NSDate timeIntervalSinceReferenceDate];
|
||||
PASS_RUNS([run runMode: NSDefaultRunLoopMode beforeDate: nil];,
|
||||
"-runMode:beforeDate: works for nil date");
|
||||
ti = [NSDate timeIntervalSinceReferenceDate] - ti;
|
||||
PASS(ti < 0.2, "-runMode:beforentilDate: for nil date takes very short time");
|
||||
|
||||
tim = [NSTimer scheduledTimerWithTimeInterval: 0.005
|
||||
invocation: inv
|
||||
repeats: NO];
|
||||
|
|
Loading…
Reference in a new issue