summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node/FSTests.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-06-01 04:53:02 (GMT)
committerSteven Knight <knight@baldmt.com>2004-06-01 04:53:02 (GMT)
commit094a011d49d4ba19f276983d848cf93bfc951b41 (patch)
tree3076a90f77a193c77c486e350e6e0b245dbfb922 /src/engine/SCons/Node/FSTests.py
parentc642fca37d45da3f01c892b1518ce42ef8abbb6e (diff)
downloadSCons-094a011d49d4ba19f276983d848cf93bfc951b41.zip
SCons-094a011d49d4ba19f276983d848cf93bfc951b41.tar.gz
SCons-094a011d49d4ba19f276983d848cf93bfc951b41.tar.bz2
Store the different dependencies in binfo separately.
Diffstat (limited to 'src/engine/SCons/Node/FSTests.py')
-rw-r--r--src/engine/SCons/Node/FSTests.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/engine/SCons/Node/FSTests.py b/src/engine/SCons/Node/FSTests.py
index f537acf..d9ffd83 100644
--- a/src/engine/SCons/Node/FSTests.py
+++ b/src/engine/SCons/Node/FSTests.py
@@ -716,7 +716,7 @@ class FSTestCase(unittest.TestCase):
dir = fs.Dir(drive)
assert str(dir) == drive + os.sep, str(dir)
- # Test Dir.children()
+ # Test Dir.scan()
dir = fs.Dir('ddd')
fs.File(string.join(['ddd', 'f1'], sep))
fs.File(string.join(['ddd', 'f2'], sep))
@@ -724,18 +724,19 @@ class FSTestCase(unittest.TestCase):
fs.Dir(string.join(['ddd', 'd1'], sep))
fs.Dir(string.join(['ddd', 'd1', 'f4'], sep))
fs.Dir(string.join(['ddd', 'd1', 'f5'], sep))
+ dir.scan()
kids = map(lambda x: x.path, dir.children(None))
kids.sort()
assert kids == [os.path.join('ddd', 'd1'),
os.path.join('ddd', 'f1'),
os.path.join('ddd', 'f2'),
- os.path.join('ddd', 'f3')]
+ os.path.join('ddd', 'f3')], kids
kids = map(lambda x: x.path_, dir.children(None))
kids.sort()
assert kids == [os.path.join('ddd', 'd1', ''),
os.path.join('ddd', 'f1'),
os.path.join('ddd', 'f2'),
- os.path.join('ddd', 'f3')]
+ os.path.join('ddd', 'f3')], kids
# Test for a bug in 0.04 that did not like looking up
# dirs with a trailing slash on Win32.