Browse Source

* If there is no HOME directory, the current dir must be used.

git-svn-id: branches/targetandroid@23401 -
yury 12 năm trước cách đây
mục cha
commit
2e58240861
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      tests/test/units/dos/tfexpand.pp

+ 2 - 0
tests/test/units/dos/tfexpand.pp

@@ -396,6 +396,8 @@ if CDir [Length (CDir)] = DirSep then Check ('c:anything', CDir + 'anything')
  Check (TestFileName, CurDir + DirSep + TestFileName);
  Check (TestFileName, CurDir + DirSep + TestFileName);
 {$IFDEF UNIX}
 {$IFDEF UNIX}
  S := GetEnv ('HOME');
  S := GetEnv ('HOME');
+ if S = '' then
+   {$IFDEF DIRECT}System.{$ENDIF DIRECT}GetDir (0, S);
  { On m68k netbsd at least, HOME contains a final slash
  { On m68k netbsd at least, HOME contains a final slash
    remove it PM }
    remove it PM }
  if S[length(S)]=DirSep then
  if S[length(S)]=DirSep then