summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node/FSTests.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-10-19 06:36:57 (GMT)
committerSteven Knight <knight@baldmt.com>2002-10-19 06:36:57 (GMT)
commit276f24218f1e730fed31fa9f9072cdd464adb7b3 (patch)
tree278e8603a6c798f3ecb244d75105da3ab3449825 /src/engine/SCons/Node/FSTests.py
parent24f95ab2762edefba6fc7afd3a302c2d2d69c5e1 (diff)
downloadSCons-276f24218f1e730fed31fa9f9072cdd464adb7b3.zip
SCons-276f24218f1e730fed31fa9f9072cdd464adb7b3.tar.gz
SCons-276f24218f1e730fed31fa9f9072cdd464adb7b3.tar.bz2
Fixes for tests following the Repository/BuildDir refactoring. (Charles Crain).
Diffstat (limited to 'src/engine/SCons/Node/FSTests.py')
-rw-r--r--src/engine/SCons/Node/FSTests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engine/SCons/Node/FSTests.py b/src/engine/SCons/Node/FSTests.py
index 1610ec6..8f9f5e4 100644
--- a/src/engine/SCons/Node/FSTests.py
+++ b/src/engine/SCons/Node/FSTests.py
@@ -82,15 +82,19 @@ class BuildDirTestCase(unittest.TestCase):
f1 = fs.File('build/test1')
fs.BuildDir('build', 'src')
f2 = fs.File('build/test2')
+ d1 = fs.Dir('build')
assert f1.srcnode().path == os.path.normpath('src/test1'), f1.srcnode().path
assert f2.srcnode().path == os.path.normpath('src/test2'), f2.srcnode().path
+ assert d1.srcnode().path == 'src', d1.srcnode().path
fs = SCons.Node.FS.FS()
f1 = fs.File('build/test1')
fs.BuildDir('build', '.')
f2 = fs.File('build/test2')
+ d1 = fs.Dir('build')
assert f1.srcnode().path == 'test1', f1.srcnode().path
assert f2.srcnode().path == 'test2', f2.srcnode().path
+ assert d1.srcnode().path == '.', d1.srcnode().path
fs = SCons.Node.FS.FS()
fs.BuildDir('build/var1', 'src')