mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
test for home directory of non-existent user
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39927 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
96d39e79bc
commit
4a2081691d
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,9 @@ int main()
|
|||
PASS([o length] > 0, "we can get a temporary directory");
|
||||
NSLog(@"NSOpenStepRootDirectory() %@", o = NSOpenStepRootDirectory());
|
||||
PASS([o length] > 0, "we can get a root directory");
|
||||
NSLog(@"NSHomeDirectoryForUser(@\"non-existent-user\") %@",
|
||||
o = NSHomeDirectoryForUser(@"non-existent-user"));
|
||||
PASS(nil == o, "home directory for non existent user is nil");
|
||||
|
||||
/* These functions have been removed in recent OSX but are retained in GNUstep
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue