diff options
author | Steven Knight <knight@baldmt.com> | 2010-01-06 01:56:25 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2010-01-06 01:56:25 (GMT) |
commit | beec14fd10176903f04f40192a64cd1106ba9934 (patch) | |
tree | fb41c7bc2cfc14c9572f9d384d841e4735106efd /src/engine | |
parent | a00896fb20749b297d7ec9d465c8dbbf7c3d47cd (diff) | |
download | SCons-beec14fd10176903f04f40192a64cd1106ba9934.zip SCons-beec14fd10176903f04f40192a64cd1106ba9934.tar.gz SCons-beec14fd10176903f04f40192a64cd1106ba9934.tar.bz2 |
Fix path name checks for case-insensitive file systems.
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/SCons/BuilderTests.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/engine/SCons/BuilderTests.py b/src/engine/SCons/BuilderTests.py index b72b133..dc60d06 100644 --- a/src/engine/SCons/BuilderTests.py +++ b/src/engine/SCons/BuilderTests.py @@ -691,13 +691,15 @@ class BuilderTestCase(unittest.TestCase): env['CNT'] = [0] tgt = builder(env, target=outfiles[0], source=infiles[0])[0] s = str(tgt) - assert s == test.workpath('0.out'), s + t = os.path.normcase(test.workpath('0.out')) + assert os.path.normcase(s) == t, s tgt.prepare() tgt.build() assert env['CNT'][0] == 1, env['CNT'][0] tgt = builder(env, outfiles[1], infiles[1])[0] s = str(tgt) - assert s == test.workpath('1.out'), s + t = os.path.normcase(test.workpath('1.out')) + assert os.path.normcase(s) == t, s tgt.prepare() tgt.build() assert env['CNT'][0] == 2 @@ -713,9 +715,10 @@ class BuilderTestCase(unittest.TestCase): # support anyway, don't bother trying to test for it. pass else: - s = str(tgts) - expect = str([test.workpath('2.out'), test.workpath('3.out')]) - assert s == expect, s + s = map(str, tgts) + expect = [test.workpath('2.out'), test.workpath('3.out')] + expect = map(os.path.normcase, expect) + assert map(os.path.normcase, s) == expect, s for t in tgts: t.prepare() tgts[0].build() tgts[1].build() |