summaryrefslogtreecommitdiffstats
path: root/test/build-errors.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-12-21 19:01:07 (GMT)
committerSteven Knight <knight@baldmt.com>2001-12-21 19:01:07 (GMT)
commitf6ab3b3b0b9847db2041de8e46401e0f44c2be9b (patch)
tree6dbbcf14d190504d14c3dc4a949f9d88d6e14402 /test/build-errors.py
parented3aa5e39e64a5b48b493f33d1438572678d8b65 (diff)
downloadSCons-f6ab3b3b0b9847db2041de8e46401e0f44c2be9b.zip
SCons-f6ab3b3b0b9847db2041de8e46401e0f44c2be9b.tar.gz
SCons-f6ab3b3b0b9847db2041de8e46401e0f44c2be9b.tar.bz2
Windows NT portability fixes for tests.
Diffstat (limited to 'test/build-errors.py')
-rw-r--r--test/build-errors.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/build-errors.py b/test/build-errors.py
index e7bcdd7..9f09ea0 100644
--- a/test/build-errors.py
+++ b/test/build-errors.py
@@ -25,7 +25,7 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os
-import os.path
+import string
import TestCmd
import TestSCons
@@ -44,7 +44,7 @@ test.write('SConstruct1', r"""
bld = Builder(name = 'bld', action = '%s $SOURCES $TARGET')
env = Environment(BUILDERS = [bld])
env.bld(target = 'f1', source = 'f1.in')
-""" % os.path.normpath(no_such_file))
+""" % string.replace(no_such_file, '\\', '\\\\'))
test.run(arguments='-f SConstruct1 .',
stdout = "%s f1.in f1\n" % no_such_file,
@@ -56,7 +56,7 @@ test.write('SConstruct2', r"""
bld = Builder(name = 'bld', action = '%s $SOURCES $TARGET')
env = Environment(BUILDERS = [bld])
env.bld(target = 'f2', source = 'f2.in')
-""" % os.path.normpath(not_executable))
+""" % string.replace(not_executable, '\\', '\\\\'))
if os.name == 'nt':
expect = """scons: %s: No such file or directory
@@ -75,7 +75,7 @@ test.write('SConstruct3', r"""
bld = Builder(name = 'bld', action = '%s $SOURCES $TARGET')
env = Environment(BUILDERS = [bld])
env.bld(target = 'f3', source = 'f3.in')
-""" % os.path.normpath(test.workdir))
+""" % string.replace(test.workdir, '\\', '\\\\'))
test.run(arguments='-f SConstruct3 .',
stdout = "%s f3.in f3\n" % test.workdir,