소스 검색

* fix test for case sensitive and case preserving file systems

git-svn-id: trunk@49183 -
florian 4 년 전
부모
커밋
f1e748512b
1개의 변경된 파일10개의 추가작업 그리고 2개의 파일을 삭제
  1. 10 2
      tests/test/units/sysutils/tfilenamecase1.pp

+ 10 - 2
tests/test/units/sysutils/tfilenamecase1.pp

@@ -20,8 +20,16 @@ Begin
     end;
   if IsFileNameCasePreserving('tfilenamecase1.dat') then
     begin
-      if not(FileExists('Tfilenamecase1.dat')) then
-        halt(1);
+      if IsFileNameCaseSensitive('tfilenamecase1.dat') then
+        begin
+          if FileExists('Tfilenamecase1.dat') then
+            halt(1);
+        end
+      else
+        begin
+          if not(FileExists('Tfilenamecase1.dat')) then
+            halt(1);
+        end
     end;
 End.