summaryrefslogtreecommitdiff
path: root/test/Exit.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-03-09 14:51:17 +0000
committerSteven Knight <knight@baldmt.com>2003-03-09 14:51:17 +0000
commit9ad8e285cb0865526631fb28536721a53d42567f (patch)
tree6ccfcee4de18c92dfdea521bd663ef5adf18db8c /test/Exit.py
parent57847f39e8598008ce3acddbcfb5a117e6981b3d (diff)
downloadscons-9ad8e285cb0865526631fb28536721a53d42567f.tar.gz
Win32 portability.
Diffstat (limited to 'test/Exit.py')
-rw-r--r--test/Exit.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/Exit.py b/test/Exit.py
index 60aa6ea5..29880845 100644
--- a/test/Exit.py
+++ b/test/Exit.py
@@ -28,12 +28,17 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
Test the explicit Exit() function.
"""
+import os.path
+
import TestSCons
test = TestSCons.TestSCons()
test.subdir('subdir')
+subdir_foo_in = os.path.join('subdir', 'foo.in')
+subdir_foo_out = os.path.join('subdir', 'foo.out')
+
test.write('SConstruct', """\
print "SConstruct"
Exit()
@@ -102,9 +107,11 @@ test.write(['subdir', 'foo.in'], "subdir/foo.in\n")
test.run(status = 27,
stdout = test.wrap_stdout("""\
-exit_builder("subdir/foo.out", "subdir/foo.in")
-"""),
- stderr = "scons: *** [subdir/foo.out] Explicit exit, status 27\n")
+exit_builder("%s", "%s")
+""" % (subdir_foo_out, subdir_foo_in)),
+ stderr = """\
+scons: *** [%s] Explicit exit, status 27
+""" % (subdir_foo_out))
test.fail_test(test.read(['subdir', 'foo.out']) != "subdir/foo.in\n")