]> granicus.if.org Git - clang/commitdiff
clang/test/lit.cfg: Improve is_filesystem_case_insensitive() to work properly on...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 1 Jul 2013 09:51:55 +0000 (09:51 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 1 Jul 2013 09:51:55 +0000 (09:51 +0000)
Cygwin does not accept the form /CYGDRIVE/X/PATH/TO/FILE against /cygdrive/X/PATH/TO/FILE.
"cygdrive" must be lower-cased.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185323 91177308-0d34-0410-b5e6-96231b3b80d8

test/lit.cfg

index 80243193c1e11762c1a99de4c140aa7673aa6940..bf8528b3f68a2984d662fd2df1621265aaf436a7 100644 (file)
@@ -246,7 +246,11 @@ if platform.system() not in ['Windows']:
 # Case-insensitive file system
 def is_filesystem_case_insensitive():
     handle, path = tempfile.mkstemp(prefix='case-test', dir=config.test_exec_root)
-    isInsensitive = os.path.exists(path.upper())
+    isInsensitive = os.path.exists(
+        os.path.join(
+            os.path.dirname(path),
+            os.path.basename(path).upper()
+            ))
     os.close(handle)
     os.remove(path)
     return isInsensitive