diff options
author | Steven Knight <knight@baldmt.com> | 2003-05-16 11:09:27 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-05-16 11:09:27 (GMT) |
commit | 487877ee4058bf8586c3a44b44202d161ec2441f (patch) | |
tree | 5dc7d3bcddf8c0d3221a073fc016492d768f286b /src/engine/SCons/Tool/ToolTests.py | |
parent | bc2756c1cb3a48d9fdcbd6d85c43fc3276fc7e96 (diff) | |
download | SCons-487877ee4058bf8586c3a44b44202d161ec2441f.zip SCons-487877ee4058bf8586c3a44b44202d161ec2441f.tar.gz SCons-487877ee4058bf8586c3a44b44202d161ec2441f.tar.bz2 |
Have the Tool() method add the tool name to the construction variable. (David Snopek)
Diffstat (limited to 'src/engine/SCons/Tool/ToolTests.py')
-rw-r--r-- | src/engine/SCons/Tool/ToolTests.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/SCons/Tool/ToolTests.py b/src/engine/SCons/Tool/ToolTests.py index c53ada3..cd809df 100644 --- a/src/engine/SCons/Tool/ToolTests.py +++ b/src/engine/SCons/Tool/ToolTests.py @@ -39,6 +39,8 @@ class ToolTestCase(unittest.TestCase): if not SCons.Util.is_List(progs): progs = [ progs ] return progs[0] + def Append(self, **kw): + self.dict.update(kw) def __getitem__(self, key): return self.dict[key] def __setitem__(self, key, val): @@ -52,6 +54,7 @@ class ToolTestCase(unittest.TestCase): assert (env['CXX'] == 'c++' or env['CXX'] == 'g++'), env['CXX'] assert env['CXXFLAGS'] == '$CCFLAGS', env['CXXFLAGS'] assert env['INCPREFIX'] == '-I', env['INCPREFIX'] + assert env['TOOLS'] == ['g++'], env['TOOLS'] try: SCons.Tool.Tool() |