Win32 portability.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sun, 9 Mar 2003 14:51:17 +0000 (14:51 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sun, 9 Mar 2003 14:51:17 +0000 (14:51 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@608 fdb21ef1-2011-0410-befe-b5e4ea1792b1

test/Exit.py

index 60aa6ea57e5c46070d6d9f79a4eae5d460d54501..298808453702a01adc1aaf259fb9c7edcaaf022c 100644 (file)
@@ -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")