summaryrefslogtreecommitdiff
path: root/test/subdivide.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2010-01-06 01:56:48 +0000
committerSteven Knight <knight@baldmt.com>2010-01-06 01:56:48 +0000
commit8ac4bd1db25e722ea2bcc2466924938fa761c31f (patch)
treee6c7aa211f4fbca7b735728e43afff1a95773d1c /test/subdivide.py
parentbeec14fd10176903f04f40192a64cd1106ba9934 (diff)
downloadscons-git-8ac4bd1db25e722ea2bcc2466924938fa761c31f.tar.gz
Fix some tests so they can still run on Windows system without
.py file associations.
Diffstat (limited to 'test/subdivide.py')
-rw-r--r--test/subdivide.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/subdivide.py b/test/subdivide.py
index 2802fc8ad..a80bc46c0 100644
--- a/test/subdivide.py
+++ b/test/subdivide.py
@@ -43,6 +43,8 @@ test = TestSCons.TestSCons()
test.subdir('src', ['src', 'sub'])
+_python_ = TestSCons._python_
+
# Because this test sets SConsignFile(None), we execute our fake
# scripts directly, not by feeding them to the Python executable.
# That is, we chmod 0755 and us a "#!/usr/bin/env python" first
@@ -81,8 +83,8 @@ test.write('SConstruct', """\
SConsignFile(None)
env = Environment(PROGSUFFIX = '.exe',
OBJSUFFIX = '.obj',
- CCCOM = r'%(fake_cc_py)s $TARGET $SOURCES',
- LINKCOM = r'%(fake_link_py)s $TARGET $SOURCES')
+ CCCOM = r'%(_python_)s %(fake_cc_py)s $TARGET $SOURCES',
+ LINKCOM = r'%(_python_)s %(fake_link_py)s $TARGET $SOURCES')
env.PrependENVPath('PATHEXT', '.PY')
env.SConscript('src/SConstruct', exports=['env'])
env.Object('foo.c')
@@ -92,8 +94,8 @@ test.write(['src', 'SConstruct'], """\
SConsignFile(None)
env = Environment(PROGSUFFIX = '.exe',
OBJSUFFIX = '.obj',
- CCCOM = r'%(fake_cc_py)s $TARGET $SOURCES',
- LINKCOM = r'%(fake_link_py)s $TARGET $SOURCES')
+ CCCOM = r'%(_python_)s %(fake_cc_py)s $TARGET $SOURCES',
+ LINKCOM = r'%(_python_)s %(fake_link_py)s $TARGET $SOURCES')
env.PrependENVPath('PATHEXT', '.PY')
p = env.Program('prog', ['main.c', '../foo$OBJSUFFIX', 'sub/bar.c'])
env.Default(p)