summaryrefslogtreecommitdiffstats
path: root/test/CC/CCCOMSTR.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/CC/CCCOMSTR.py')
-rw-r--r--test/CC/CCCOMSTR.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/CC/CCCOMSTR.py b/test/CC/CCCOMSTR.py
index 0be9971..9977243 100644
--- a/test/CC/CCCOMSTR.py
+++ b/test/CC/CCCOMSTR.py
@@ -34,11 +34,10 @@ import os
import TestSCons
_python_ = TestSCons._python_
-_exe = TestSCons._exe
test = TestSCons.TestSCons()
-test.dir_fixture('shared-fixture')
+test.file_fixture('mycompile.py')
if os.path.normcase('.c') == os.path.normcase('.C'):
alt_c_suffix = '.C'
@@ -46,13 +45,15 @@ else:
alt_c_suffix = '.c'
test.write('SConstruct', """
-env = Environment(CCCOM = r'%(_python_)s mycc.py $TARGET $SOURCE',
+env = Environment(CCCOM = r'%(_python_)s mycompile.py cc $TARGET $SOURCE',
CCCOMSTR = 'Building $TARGET from $SOURCE',
OBJSUFFIX='.obj')
env.Object(target = 'test1', source = 'test1.c')
env.Object(target = 'test2', source = 'test2%(alt_c_suffix)s')
""" % locals())
+test.write('test1.c', 'test1.c\n/*cc*/\n')
+
test.write('test2'+alt_c_suffix, """\
test2.C
/*cc*/
@@ -66,8 +67,6 @@ Building test2.obj from test2%(alt_c_suffix)s
test.must_match('test1.obj', "test1.c\n")
test.must_match('test2.obj', "test2.C\n")
-
-
test.pass_test()
# Local Variables: