summaryrefslogtreecommitdiffstats
path: root/test/YACC.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-09-05 00:04:32 (GMT)
committerSteven Knight <knight@baldmt.com>2002-09-05 00:04:32 (GMT)
commit246819663b8eaeb130580f4b97990248f26eaadd (patch)
treef9ca305b654b4d35be2ba9a59bc85f341b916ac4 /test/YACC.py
parent08ecd797ee635637097196960ea6a90e8dd29d62 (diff)
downloadSCons-246819663b8eaeb130580f4b97990248f26eaadd.zip
SCons-246819663b8eaeb130580f4b97990248f26eaadd.tar.gz
SCons-246819663b8eaeb130580f4b97990248f26eaadd.tar.bz2
Fix the tests that broke from the tool auto-detect stuff. (Anthony Roach and SK)
Diffstat (limited to 'test/YACC.py')
-rw-r--r--test/YACC.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/YACC.py b/test/YACC.py
index 2868085..1df8cc5 100644
--- a/test/YACC.py
+++ b/test/YACC.py
@@ -34,8 +34,12 @@ python = sys.executable
if sys.platform == 'win32':
_exe = '.exe'
+ compiler = 'msvc'
+ linker = 'mslink'
else:
_exe = ''
+ compiler = 'gcc'
+ linker = 'gnulink'
test = TestSCons.TestSCons()
@@ -58,8 +62,10 @@ output.close()
sys.exit(0)
""")
+
+
test.write('SConstruct', """
-env = Environment(YACC = r'%s myyacc.py')
+env = Environment(YACC = r'%s myyacc.py', tools=['default', 'yacc'])
env.Program(target = 'aaa', source = 'aaa.y')
""" % python)