mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
90548a1c95
commit
6da5d98af9
1 changed files with 5 additions and 2 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue