summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/TaskmasterTests.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-12-03 16:06:04 (GMT)
committerSteven Knight <knight@baldmt.com>2004-12-03 16:06:04 (GMT)
commitf0c3476fdae7032e6232d112864518934ba8a13e (patch)
treefe59fb9ac580b7b454482d93d0389cd0f00f12fc /src/engine/SCons/TaskmasterTests.py
parent9bb2d035b8c5b5f1575ba40eb264d7a334f10542 (diff)
downloadSCons-f0c3476fdae7032e6232d112864518934ba8a13e.zip
SCons-f0c3476fdae7032e6232d112864518934ba8a13e.tar.gz
SCons-f0c3476fdae7032e6232d112864518934ba8a13e.tar.bz2
Print --debug={tree,dtree,includes} even if the build has an error.
Diffstat (limited to 'src/engine/SCons/TaskmasterTests.py')
-rw-r--r--src/engine/SCons/TaskmasterTests.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/engine/SCons/TaskmasterTests.py b/src/engine/SCons/TaskmasterTests.py
index cc4ba0c..a3e4219 100644
--- a/src/engine/SCons/TaskmasterTests.py
+++ b/src/engine/SCons/TaskmasterTests.py
@@ -625,6 +625,20 @@ class TaskmasterTestCase(unittest.TestCase):
tm = MyTM()
assert tm.is_blocked()
+ def test_next_top_level_candidate(self):
+ """Test the next_top_level_candidate() method
+ """
+ n1 = Node("n1")
+ n2 = Node("n2", [n1])
+ n3 = Node("n3", [n2])
+
+ tm = SCons.Taskmaster.Taskmaster([n3])
+ t = tm.next_task()
+ assert tm.executing == [n1], tm.executing
+ t.fail_stop()
+ assert t.targets == [n3], t.targets
+ assert t.top == 1, t.top
+
def test_stop(self):
"""Test the stop() method