From: stevenknight Date: Tue, 21 Oct 2003 04:00:25 +0000 (+0000) Subject: Test portability for win32. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fc2867c2a89cef2da25fd71e04cbc5917e581276;p=scons.git Test portability for win32. git-svn-id: http://scons.tigris.org/svn/scons/trunk@823 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/test/option-j.py b/test/option-j.py index 9af81790..cb1a88ac 100644 --- a/test/option-j.py +++ b/test/option-j.py @@ -183,21 +183,21 @@ test.fail_test(start2 < finish1) # Test that a failed build with -j works properly. -test.write('copy.py', r"""\ +test.write('mycopy.py', r"""\ import sys import time time.sleep(1) -open(sys.argv[1], 'w').write(open(sys.argv[2], 'r').read()) +open(sys.argv[1], 'wb').write(open(sys.argv[2], 'rb').read()) """) -test.write('fail.py', r"""\ +test.write('myfail.py', r"""\ import sys sys.exit(1) """) test.write('SConstruct', """ -MyCopy = Builder(action = r'%s copy.py $TARGET $SOURCE') -Fail = Builder(action = r'%s fail.py $TARGETS $SOURCE') +MyCopy = Builder(action = r'%s mycopy.py $TARGET $SOURCE') +Fail = Builder(action = r'%s myfail.py $TARGETS $SOURCE') env = Environment(BUILDERS = { 'MyCopy' : MyCopy, 'Fail' : Fail }) env.Fail(target = 'f3', source = 'f3.in') env.MyCopy(target = 'f4', source = 'f4.in')