From: stevenknight Date: Sun, 9 Mar 2003 14:51:17 +0000 (+0000) Subject: Win32 portability. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=490e1eb6da5d09ba1779eaa66143a3f34535d571;p=scons.git Win32 portability. git-svn-id: http://scons.tigris.org/svn/scons/trunk@608 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- 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")