skip test if we can't expect it to run as root

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36462 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2013-04-03 21:54:43 +00:00
parent 90548a1c95
commit 6da5d98af9

View file

@ -33,8 +33,11 @@ int main()
"dot directory reference retained");
tmp = NSHomeDirectoryForUser(@"root");
PASS_EQUAL([tmp stringByAbbreviatingWithTildeInPath], tmp,
"tilde does nothing for root's home");
if (NO == [tmp isEqual: NSHomeDirectory()])
{
PASS_EQUAL([tmp stringByAbbreviatingWithTildeInPath], tmp,
"tilde does nothing for root's home");
}
tmp = [NSString stringWithFormat: @"////%@//Documents///", home];
PASS_EQUAL([tmp stringByAbbreviatingWithTildeInPath], @"~/Documents",