mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Fixup host name
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37804 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
eafd7d5b66
commit
97a345597d
3 changed files with 18 additions and 5 deletions
|
@ -36,12 +36,15 @@ int main()
|
|||
"-globallyUniqueString works");
|
||||
|
||||
obj = [info operatingSystemName];
|
||||
PASS((obj != nil &&
|
||||
[obj isKindOfClass:[NSString class]] &&
|
||||
[obj length] > 0),
|
||||
"-operatingSystemName works");
|
||||
PASS((obj != nil && [obj isKindOfClass:[NSString class]] && [obj length] > 0),
|
||||
"-operatingSystemName works");
|
||||
NSLog(@"operatingSystemName %@", obj);
|
||||
val = [info operatingSystem];
|
||||
PASS(val != 0, "-operatingSystem works");
|
||||
obj = [info hostName];
|
||||
PASS((obj != nil && [obj isKindOfClass:[NSString class]] && [obj length] > 0),
|
||||
"-hostName works");
|
||||
NSLog(@"hostName %@", obj);
|
||||
[arp release]; arp = nil;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue