summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/TaskmasterTests.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-12-06 14:02:46 (GMT)
committerSteven Knight <knight@baldmt.com>2003-12-06 14:02:46 (GMT)
commit42ee4d4c6c6e24483c86f7b70a51348ca13d23d7 (patch)
treec8baabdabb38e3609d571d1cc567a77d08330d2a /src/engine/SCons/TaskmasterTests.py
parent97fc203f467ce01954ec529eaae11aa1e0a898f1 (diff)
downloadSCons-42ee4d4c6c6e24483c86f7b70a51348ca13d23d7.zip
SCons-42ee4d4c6c6e24483c86f7b70a51348ca13d23d7.tar.gz
SCons-42ee4d4c6c6e24483c86f7b70a51348ca13d23d7.tar.bz2
Prepare side-effect nodes before building, too. (Charles Crain)
Diffstat (limited to 'src/engine/SCons/TaskmasterTests.py')
-rw-r--r--src/engine/SCons/TaskmasterTests.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/engine/SCons/TaskmasterTests.py b/src/engine/SCons/TaskmasterTests.py
index fd21891..019611a 100644
--- a/src/engine/SCons/TaskmasterTests.py
+++ b/src/engine/SCons/TaskmasterTests.py
@@ -627,6 +627,28 @@ class TaskmasterTestCase(unittest.TestCase):
assert str(e) == "exception value", e
assert built_text is None, built_text
+ # Regression test, make sure we prepare not only
+ # all targets, but their side effects as well.
+ n6 = Node("n6")
+ n7 = Node("n7")
+ n8 = Node("n8")
+ n9 = Node("n9")
+ n10 = Node("n10")
+
+ n6.side_effects = [ n8 ]
+ n7.side_effects = [ n9, n10 ]
+
+ tm = SCons.Taskmaster.Taskmaster([n6, n7])
+ t = tm.next_task()
+ # More bogus reaching in and setting the targets.
+ t.targets = [n6, n7]
+ t.prepare()
+ assert n6.prepared
+ assert n7.prepared
+ assert n8.prepared
+ assert n9.prepared
+ assert n10.prepared
+
def test_execute(self):
"""Test executing a task