summaryrefslogtreecommitdiffstats
path: root/test/Variables/Variables.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/Variables/Variables.py')
-rw-r--r--test/Variables/Variables.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Variables/Variables.py b/test/Variables/Variables.py
index bb7b237..f6832c0 100644
--- a/test/Variables/Variables.py
+++ b/test/Variables/Variables.py
@@ -28,6 +28,7 @@ import TestSCons
test = TestSCons.TestSCons()
test.write('SConstruct', """
+DefaultEnvironment(tools=[]) # test speedup
env = Environment()
print(env['CC'])
print(" ".join(env['CCFLAGS']))
@@ -94,6 +95,7 @@ def test_tool(env):
env.Append(CCFLAGS = '-g')
+DefaultEnvironment(tools=[]) # test speedup
env = Environment(variables=opts, tools=['default', test_tool])
Help('Variables settable in custom.py or on the command line:\\n' + opts.GenerateHelpText(env))
@@ -217,6 +219,7 @@ opts.Add('DEBUG_BUILD',
opts.Add('UNSPECIFIED',
'An option with no value')
+DefaultEnvironment(tools=[]) # test speedup
env = Environment(variables = opts)
print(env['RELEASE_BUILD'])
@@ -275,6 +278,7 @@ opts.Add('LISTOPTION_TEST',
'none',
names = ['a','b','c',])
+DefaultEnvironment(tools=[]) # test speedup
env = Environment(variables = opts)
print(env['RELEASE_BUILD'])
@@ -319,6 +323,7 @@ opts.Add('CC',
opts.Add('UNSPECIFIED',
'An option with no value')
+DefaultEnvironment(tools=[]) # test speedup
env = Environment(variables=opts)
def compare(a, b):
@@ -355,6 +360,7 @@ Use scons -H for help about command-line options.
test.write('SConstruct', """
import SCons.Variables
+DefaultEnvironment(tools=[]) # test speedup
env1 = Environment(variables = Variables())
env2 = Environment(variables = SCons.Variables.Variables())
""")