Test portability to Win32.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sun, 9 May 2004 02:09:27 +0000 (02:09 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sun, 9 May 2004 02:09:27 +0000 (02:09 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@974 fdb21ef1-2011-0410-befe-b5e4ea1792b1

test/CacheDir.py

index 44dd708e98785490744a545b3bbceaed4ee3701f..a45fe2c95e05db8224ec4f9be5f7d58e29533367 100644 (file)
@@ -276,9 +276,12 @@ test.fail_test(os.path.exists(test.workpath('cache3', 'N', 'None')))
 test.subdir('multiple', 'cache4')
 
 test.write(['multiple', 'SConstruct'], """\
+def touch(env, source, target):
+    open('foo', 'w').write("")
+    open('bar', 'w').write("")
 CacheDir(r'%s')
 env = Environment()
-env.Command(['foo', 'bar'], ['input'], 'touch foo bar')
+env.Command(['foo', 'bar'], ['input'], touch)
 """ % (test.workpath('cache4')))
 
 test.write(['multiple', 'input'], "multiple/input\n")