summaryrefslogtreecommitdiffstats
path: root/test/LINK/LINKCOMSTR.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/LINK/LINKCOMSTR.py')
-rw-r--r--test/LINK/LINKCOMSTR.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/LINK/LINKCOMSTR.py b/test/LINK/LINKCOMSTR.py
index 8fd8adc..8163016 100644
--- a/test/LINK/LINKCOMSTR.py
+++ b/test/LINK/LINKCOMSTR.py
@@ -32,7 +32,6 @@ the displayed linker string.
import TestSCons
_python_ = TestSCons._python_
-_exe = TestSCons._exe
test = TestSCons.TestSCons()
@@ -43,7 +42,7 @@ import sys
outfile = open(sys.argv[1], 'wb')
for f in sys.argv[2:]:
infile = open(f, 'rb')
- for l in [l for l in infile.readlines() if l != '/*link*/\n']:
+ for l in [l for l in infile.readlines() if l != b'/*link*/\n']:
outfile.write(l)
sys.exit(0)
""")
@@ -80,6 +79,7 @@ env = Environment(CXXCOMSTR = 'Compiling $TARGET ...',
LINKCOMSTR = 'Linking $TARGET ...')
env.Program('test', 'test.cpp')
""")
+
test.write('test.cpp', """
int main(int argc, char **argv) {}
""")