summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node/FSTests.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-11-20 17:58:56 (GMT)
committerSteven Knight <knight@baldmt.com>2001-11-20 17:58:56 (GMT)
commitfa11b8d2fa2e3adc18588992ff869b1f1457c03f (patch)
tree569699b30c9de0106b55352d89b2d03ef8cfe086 /src/engine/SCons/Node/FSTests.py
parent76166c77f852377b6139a9414cc355fe2661a0e7 (diff)
downloadSCons-fa11b8d2fa2e3adc18588992ff869b1f1457c03f.zip
SCons-fa11b8d2fa2e3adc18588992ff869b1f1457c03f.tar.gz
SCons-fa11b8d2fa2e3adc18588992ff869b1f1457c03f.tar.bz2
Crain: Finish LIBS, LIBPATH, CPPPATH
Diffstat (limited to 'src/engine/SCons/Node/FSTests.py')
-rw-r--r--src/engine/SCons/Node/FSTests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine/SCons/Node/FSTests.py b/src/engine/SCons/Node/FSTests.py
index 4305a32..fe35d76 100644
--- a/src/engine/SCons/Node/FSTests.py
+++ b/src/engine/SCons/Node/FSTests.py
@@ -301,6 +301,12 @@ class FSTestCase(unittest.TestCase):
f1.scan()
assert f1.depends[0].path_ == "d1/f1"
+ # Test building a file whose directory is not there yet...
+ f1 = fs.File(test.workpath("foo/bar/baz/ack"))
+ assert not f1.dir.exists()
+ f1.build()
+ assert f1.dir.exists()
+
#XXX test exists()
#XXX test current() for directories