summaryrefslogtreecommitdiffstats
path: root/test/option--C.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-07-15 17:06:59 (GMT)
committerSteven Knight <knight@baldmt.com>2002-07-15 17:06:59 (GMT)
commitca18bc15c4c7fe67dd8ad52d578b2c395f79bbc8 (patch)
tree80366dcf24c8abcbefa41dd4c0cb3a690d9fd295 /test/option--C.py
parentba3c2978b1e37d457976f0dbe1921d9c742e2a4d (diff)
downloadSCons-ca18bc15c4c7fe67dd8ad52d578b2c395f79bbc8.zip
SCons-ca18bc15c4c7fe67dd8ad52d578b2c395f79bbc8.tar.gz
SCons-ca18bc15c4c7fe67dd8ad52d578b2c395f79bbc8.tar.bz2
Win32 portability fixes. (Charles Crain)
Diffstat (limited to 'test/option--C.py')
-rw-r--r--test/option--C.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/test/option--C.py b/test/option--C.py
index 122dc75..8fbb457 100644
--- a/test/option--C.py
+++ b/test/option--C.py
@@ -27,8 +27,22 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
import string
import sys
+import os.path
+import types
-test = TestSCons.TestSCons()
+def match_normcase(lines, matches):
+ if not type(lines) is types.ListType:
+ lines = string.split(lines, "\n")
+ if not type(matches) is types.ListType:
+ matches = string.split(matches, "\n")
+ if len(lines) != len(matches):
+ return
+ for i in range(len(lines)):
+ if os.path.normcase(lines[i]) != os.path.normcase(matches[i]):
+ return
+ return 1
+
+test = TestSCons.TestSCons(match=match_normcase)
wpath = test.workpath()
wpath_sub = test.workpath('sub')