summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/TaskmasterTests.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-03-28 03:29:11 (GMT)
committerSteven Knight <knight@baldmt.com>2003-03-28 03:29:11 (GMT)
commite94e7726d2602503cd6ea7ba1acb37558821827e (patch)
tree3c312aac30b8d44b5e898a1ff9ec15b5003b98e7 /src/engine/SCons/TaskmasterTests.py
parentf63429682eca0f75ba22c2e01f155bb8d986bd85 (diff)
downloadSCons-e94e7726d2602503cd6ea7ba1acb37558821827e.zip
SCons-e94e7726d2602503cd6ea7ba1acb37558821827e.tar.gz
SCons-e94e7726d2602503cd6ea7ba1acb37558821827e.tar.bz2
Fix erroneous dependency-cycle errors when an Alias source doesn't exist. (Anthony Roach)
Diffstat (limited to 'src/engine/SCons/TaskmasterTests.py')
-rw-r--r--src/engine/SCons/TaskmasterTests.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/engine/SCons/TaskmasterTests.py b/src/engine/SCons/TaskmasterTests.py
index 89c53c7..3616370 100644
--- a/src/engine/SCons/TaskmasterTests.py
+++ b/src/engine/SCons/TaskmasterTests.py
@@ -551,6 +551,17 @@ class TaskmasterTestCase(unittest.TestCase):
assert n1.prepared
assert n2.prepared
+ n3 = Node("n3")
+ n4 = Node("n4")
+ tm = SCons.Taskmaster.Taskmaster([n3, n4])
+ t = tm.next_task()
+ # More bogus reaching in and setting the targets.
+ n3.set_state(SCons.Node.up_to_date)
+ t.targets = [n3, n4]
+ t.prepare()
+ assert n3.prepared
+ assert n4.prepared
+
# If the Node has had an exception recorded while it was getting
# prepared, then prepare() should raise that exception.
class MyException(Exception):