summaryrefslogtreecommitdiff
path: root/test/nonexistent.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-01-09 07:02:06 +0000
committerSteven Knight <knight@baldmt.com>2003-01-09 07:02:06 +0000
commitd8971e6f3a7252356768ed9473461bfb45869e76 (patch)
tree5a5a063f31ebcee088faa846cb409b09a887a544 /test/nonexistent.py
parent70cbd50755323e60514c354bd0b8166990a6dae7 (diff)
downloadscons-d8971e6f3a7252356768ed9473461bfb45869e76.tar.gz
Win32 portability.
Diffstat (limited to 'test/nonexistent.py')
-rw-r--r--test/nonexistent.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/nonexistent.py b/test/nonexistent.py
index 57bf5e13..e10e1638 100644
--- a/test/nonexistent.py
+++ b/test/nonexistent.py
@@ -30,10 +30,13 @@ or uses a nonexistent source file.
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
+import os.path
import TestSCons
test = TestSCons.TestSCons()
+foo_bar = os.path.join('foo', 'bar')
+
test.write('SConstruct', """
env = Environment()
env.Command("aaa.out", "aaa.in", "should never get executed")
@@ -47,8 +50,7 @@ test.run(arguments = 'foo',
status = 2)
test.run(arguments = '-k foo/bar foo',
- stderr = """scons: *** Do not know how to make target `foo/bar'.
-""",
+ stderr = "scons: *** Do not know how to make target `%s'.\n" % foo_bar,
status = 2)
test.run(arguments = "aaa.out",