Author: rfm
Date: Mon Jun 27 08:39:31 2016
New Revision: 39927
URL: http://svn.gna.org/viewcvs/gnustep?rev=39927&view=rev
Log:
test for home directory of non-existent user
Modified:
libs/base/trunk/Tests/base/Functions/NSPathUtilities.m
Modified: libs/base/trunk/Tests/base/Functions/NSPathUtilities.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Tests/base/Functions/NSPathUtilities.m?rev=39927&r1=39926&r2=39927&view=diff
==============================================================================
--- libs/base/trunk/Tests/base/Functions/NSPathUtilities.m (original)
+++ libs/base/trunk/Tests/base/Functions/NSPathUtilities.m Mon Jun 27
08:39:31 2016
@@ -21,6 +21,9 @@
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
*/
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs