summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node/FSTests.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-12-11 06:54:13 (GMT)
committerSteven Knight <knight@baldmt.com>2001-12-11 06:54:13 (GMT)
commitc9654522715c157b5c09b79c77ff4bb54bd09f19 (patch)
tree251b1f9d11414813948d497e51fe03098349542c /src/engine/SCons/Node/FSTests.py
parentd64afa0c1a0c43d658105a7e6aebcf23559c108a (diff)
downloadSCons-c9654522715c157b5c09b79c77ff4bb54bd09f19.zip
SCons-c9654522715c157b5c09b79c77ff4bb54bd09f19.tar.gz
SCons-c9654522715c157b5c09b79c77ff4bb54bd09f19.tar.bz2
Track implicit (scanned) dependencies separately from the others.
Diffstat (limited to 'src/engine/SCons/Node/FSTests.py')
-rw-r--r--src/engine/SCons/Node/FSTests.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/engine/SCons/Node/FSTests.py b/src/engine/SCons/Node/FSTests.py
index fc58c4a..aecbfb4 100644
--- a/src/engine/SCons/Node/FSTests.py
+++ b/src/engine/SCons/Node/FSTests.py
@@ -303,16 +303,13 @@ class FSTestCase(unittest.TestCase):
# Test scanning
f1.scanner = Scanner()
f1.scan()
- assert f1.depends[0].path_ == os.path.join("d1", "f1")
- f1.scanner = None
- f1.scanned = None
+ assert f1.implicit[f1.scanner][0].path_ == os.path.join("d1", "f1")
+ del f1.implicit[f1.scanner]
f1.scan()
- assert f1.depends[0].path_ == os.path.join("d1", "f1")
- f1.scanner = None
- f1.scanned = None
- f1.depends = []
+ assert len(f1.implicit) == 0, f1.implicit
+ del f1.scanned[f1.scanner]
f1.scan()
- assert not f1.depends
+ assert f1.implicit[f1.scanner][0].path_ == os.path.join("d1", "f1")
# Test building a file whose directory is not there yet...
f1 = fs.File(test.workpath("foo/bar/baz/ack"))