mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
* Tests/base/NSProcessInfo/general.m: Mark test for -systemUptime
as hopeful as it may fail in GNU Hurd. Fixes bug #53941. Based on idea by Yavor Doganov <yavor@gnu.org>
This commit is contained in:
parent
168d2c91e8
commit
4ebe918306
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2018-05-27 Fred Kiefer <fredkiefer@gmx.de>
|
||||
|
||||
* Tests/base/NSProcessInfo/general.m: Mark test for -systemUptime
|
||||
as hopeful as it may fail in GNU Hurd.
|
||||
Fixes bug #53941.
|
||||
Based on idea by Yavor Doganov <yavor@gnu.org>
|
||||
|
||||
2018-05-21 Fred Kiefer <fredkiefer@gmx.de>
|
||||
|
||||
* Source/GSConcreteValueTemplate.m: Add hack to make point and
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#import "Testing.h"
|
||||
#import <Foundation/NSArray.h>
|
||||
#import <Foundation/NSAutoreleasePool.h>
|
||||
#import <Foundation/NSDictionary.h>
|
||||
#import <Foundation/NSProcessInfo.h>
|
||||
#import <Foundation/NSString.h>
|
||||
|
||||
|
@ -43,9 +44,11 @@ int main()
|
|||
val = [info operatingSystem];
|
||||
PASS(val != 0, "-operatingSystem works");
|
||||
|
||||
testHopeful = YES;
|
||||
val = [info systemUptime];
|
||||
NSLog(@"systemUptime %lu", val);
|
||||
PASS(val != 0, "-systemUptime works");
|
||||
testHopeful = NO;
|
||||
|
||||
obj = [info hostName];
|
||||
PASS((obj != nil && [obj isKindOfClass:[NSString class]] && [obj length] > 0),
|
||||
|
|
Loading…
Reference in a new issue