r185323 - clang/test/lit.cfg: Improve is_filesystem_case_insensitive() to work properly on cygwin.

NAKAMURA Takumi geek4civic at gmail.com
Mon Jul 1 02:51:55 PDT 2013


Author: chapuni
Date: Mon Jul  1 04:51:55 2013
New Revision: 185323

URL: http://llvm.org/viewvc/llvm-project?rev=185323&view=rev
Log:
clang/test/lit.cfg: Improve is_filesystem_case_insensitive() to work properly on cygwin.

Cygwin does not accept the form /CYGDRIVE/X/PATH/TO/FILE against /cygdrive/X/PATH/TO/FILE.
"cygdrive" must be lower-cased.

Modified:
    cfe/trunk/test/lit.cfg

Modified: cfe/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/lit.cfg?rev=185323&r1=185322&r2=185323&view=diff
==============================================================================
--- cfe/trunk/test/lit.cfg (original)
+++ cfe/trunk/test/lit.cfg Mon Jul  1 04:51:55 2013
@@ -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





More information about the cfe-commits mailing list