summaryrefslogtreecommitdiffstats
path: root/test/CacheDir.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-05-09 02:09:27 (GMT)
committerSteven Knight <knight@baldmt.com>2004-05-09 02:09:27 (GMT)
commita796d320b90d03a79d3a73971176a9a6959e5c7e (patch)
tree961e6068b83bf5e0a4e4409b6c8cff01c4eb4b8a /test/CacheDir.py
parent726fb30a6bf97ec2bc59c630f8291a990050cb13 (diff)
downloadSCons-a796d320b90d03a79d3a73971176a9a6959e5c7e.zip
SCons-a796d320b90d03a79d3a73971176a9a6959e5c7e.tar.gz
SCons-a796d320b90d03a79d3a73971176a9a6959e5c7e.tar.bz2
Test portability to Win32.
Diffstat (limited to 'test/CacheDir.py')
-rw-r--r--test/CacheDir.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/CacheDir.py b/test/CacheDir.py
index 44dd708..a45fe2c 100644
--- a/test/CacheDir.py
+++ b/test/CacheDir.py
@@ -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")