summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node/NodeTests.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2009-02-22 06:34:14 (GMT)
committerSteven Knight <knight@baldmt.com>2009-02-22 06:34:14 (GMT)
commit140cb569328ee9904e7339932502307d035a8ee0 (patch)
treeb9c8610286de9c2c20f8625fc99f6a7d783d55a2 /src/engine/SCons/Node/NodeTests.py
parente6acb0941b3a9415ed76e60d541096dedd026908 (diff)
downloadSCons-140cb569328ee9904e7339932502307d035a8ee0.zip
SCons-140cb569328ee9904e7339932502307d035a8ee0.tar.gz
SCons-140cb569328ee9904e7339932502307d035a8ee0.tar.bz2
Move the set_state(EXECUTED) call associated with pulling things
out of a CacheDir from CacheDir.py to Taskmaster.py. Ripple effects include adding a Node.FS.push_to_cache() method, so that logic can be invoked separately from the Node.built() method.
Diffstat (limited to 'src/engine/SCons/Node/NodeTests.py')
-rw-r--r--src/engine/SCons/Node/NodeTests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine/SCons/Node/NodeTests.py b/src/engine/SCons/Node/NodeTests.py
index ce56d5a..4612d3f 100644
--- a/src/engine/SCons/Node/NodeTests.py
+++ b/src/engine/SCons/Node/NodeTests.py
@@ -435,6 +435,12 @@ class NodeTestCase(unittest.TestCase):
assert n.cleared, n.cleared
assert n.ninfo.updated, n.ninfo.cleared
+ def test_push_to_cache(self):
+ """Test the base push_to_cache() method"""
+ n = SCons.Node.Node()
+ r = n.push_to_cache()
+ assert r is None, r
+
def test_retrieve_from_cache(self):
"""Test the base retrieve_from_cache() method"""
n = SCons.Node.Node()