소스 검색

* Avoid infinite loop on Unix

git-svn-id: trunk@18242 -
pierre 14 년 전
부모
커밋
8dc1ce55c1
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      tests/test/units/sysutils/tdirex.pp

+ 4 - 1
tests/test/units/sysutils/tdirex.pp

@@ -55,7 +55,10 @@ begin
         begin
           dir:=copy(dir,1,maxpos-1);
           TestDirectoryExists(dir,true);
-        end;
+        end
+      else
+      { if length(dir)<=1, exit test }
+        exit;
     end;
 end;