summaryrefslogtreecommitdiffstats
path: root/test/CC/SHCCCOMSTR.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/CC/SHCCCOMSTR.py')
-rw-r--r--test/CC/SHCCCOMSTR.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/CC/SHCCCOMSTR.py b/test/CC/SHCCCOMSTR.py
index 0983a67..75f3aad 100644
--- a/test/CC/SHCCCOMSTR.py
+++ b/test/CC/SHCCCOMSTR.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,7 +45,7 @@ else:
alt_c_suffix = '.c'
test.write('SConstruct', """
-env = Environment(SHCCCOM = r'%(_python_)s mycc.py $TARGET $SOURCE',
+env = Environment(SHCCCOM = r'%(_python_)s mycompile.py cc $TARGET $SOURCE',
SHCCCOMSTR = 'Building $TARGET from $SOURCE',
SHOBJPREFIX='',
SHOBJSUFFIX='.obj')
@@ -54,6 +53,8 @@ env.SharedObject(target = 'test1', source = 'test1.c')
env.SharedObject(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*/