summaryrefslogtreecommitdiffstats
path: root/test/CC/SHCCCOM.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/CC/SHCCCOM.py')
-rw-r--r--test/CC/SHCCCOM.py16
1 files changed, 1 insertions, 15 deletions
diff --git a/test/CC/SHCCCOM.py b/test/CC/SHCCCOM.py
index 006a80e..689b6e7 100644
--- a/test/CC/SHCCCOM.py
+++ b/test/CC/SHCCCOM.py
@@ -36,16 +36,7 @@ _python_ = TestSCons._python_
test = TestSCons.TestSCons()
-
-
-test.write('mycc.py', r"""
-import sys
-outfile = open(sys.argv[1], 'wb')
-infile = open(sys.argv[2], 'rb')
-for l in [l for l in infile.readlines() if l[:6] != '/*cc*/']:
- outfile.write(l)
-sys.exit(0)
-""")
+test.dir_fixture('shared-fixture')
if os.path.normcase('.c') == os.path.normcase('.C'):
alt_c_suffix = '.C'
@@ -60,11 +51,6 @@ env.SharedObject(target = 'test1', source = 'test1.c')
env.SharedObject(target = 'test2', source = 'test2%(alt_c_suffix)s')
""" % locals())
-test.write('test1.c', """\
-test1.c
-/*cc*/
-""")
-
test.write('test2'+alt_c_suffix, """\
test2.C
/*cc*/