Explorar el Código

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

git-svn-id: branches/targetandroid@23401 -
yury hace 12 años
padre
commit
2e58240861
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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);
 {$IFDEF UNIX}
  S := GetEnv ('HOME');
+ if S = '' then
+   {$IFDEF DIRECT}System.{$ENDIF DIRECT}GetDir (0, S);
  { On m68k netbsd at least, HOME contains a final slash
    remove it PM }
  if S[length(S)]=DirSep then