diff options
Diffstat (limited to 'test/CXX.py')
-rw-r--r-- | test/CXX.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CXX.py b/test/CXX.py index bff7708..ad2eb10 100644 --- a/test/CXX.py +++ b/test/CXX.py @@ -155,7 +155,9 @@ test.fail_test(test.read('test4' + _exe) != "This is a .c++ file.\n") test.fail_test(test.read('test5' + _exe) != "This is a .C++ file.\n") -if os.path.normcase('.c') != os.path.normcase('.C'): +# Cygwin's os.path.normcase pretends it's on a case-sensitive filesystem. +_is_cygwin = sys.platform == "cygwin" +if os.path.normcase('.c') != os.path.normcase('.C') and not _is_cygwin: test.write('SConstruct', """ env = Environment(LINK = r'%s mylink.py', |