diff options
author | Steven Knight <knight@baldmt.com> | 2003-03-09 14:51:17 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-03-09 14:51:17 (GMT) |
commit | 9ad8e285cb0865526631fb28536721a53d42567f (patch) | |
tree | 6ccfcee4de18c92dfdea521bd663ef5adf18db8c | |
parent | 57847f39e8598008ce3acddbcfb5a117e6981b3d (diff) | |
download | SCons-9ad8e285cb0865526631fb28536721a53d42567f.zip SCons-9ad8e285cb0865526631fb28536721a53d42567f.tar.gz SCons-9ad8e285cb0865526631fb28536721a53d42567f.tar.bz2 |
Win32 portability.
-rw-r--r-- | test/Exit.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/test/Exit.py b/test/Exit.py index 60aa6ea..2988084 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") |