Ver Fonte

* fix test for case sensitive and case preserving file systems

git-svn-id: trunk@49183 -
(cherry picked from commit f1e748512bfa4c4f4d9aafa1eb69ad7528c3e4ff)
florian há 4 anos atrás
pai
commit
aaf503c85f
1 ficheiros alterados com 10 adições e 2 exclusões
  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.