diff options
author | Steven Knight <knight@baldmt.com> | 2002-08-19 00:03:07 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-08-19 00:03:07 (GMT) |
commit | 936f9896cc189747ace62a948d91324c7cec2b47 (patch) | |
tree | e031b29ee26af54b9486e93037788bb12329ee71 /src/engine/SCons/Node/FSTests.py | |
parent | d9311bfd9cb3557263a8c9698bed7e50496c56d4 (diff) | |
download | SCons-936f9896cc189747ace62a948d91324c7cec2b47.zip SCons-936f9896cc189747ace62a948d91324c7cec2b47.tar.gz SCons-936f9896cc189747ace62a948d91324c7cec2b47.tar.bz2 |
Cache exists() and rexists() values all the time.
Diffstat (limited to 'src/engine/SCons/Node/FSTests.py')
-rw-r--r-- | src/engine/SCons/Node/FSTests.py | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/engine/SCons/Node/FSTests.py b/src/engine/SCons/Node/FSTests.py index f9f1c9e..24a508b 100644 --- a/src/engine/SCons/Node/FSTests.py +++ b/src/engine/SCons/Node/FSTests.py @@ -133,11 +133,19 @@ class BuildDirTestCase(unittest.TestCase): test.subdir('src') test.write(['src', 'test'], "src/test\n") test.write(['src', 'test'], "src/test.out\n") - assert f1.exists() + + assert not f1.exists() assert not f1out.exists() assert not f2.exists() assert not f2out.exists() + f1.built() + f2.built() + + assert f1.exists() + assert not f1out.exists() + assert not f2.exists() + assert not f2out.exists() d1 = fs.Dir('build/var1') d2 = fs.Dir('build/var2') @@ -453,13 +461,13 @@ class FSTestCase(unittest.TestCase): f1 = fs.File(test.workpath("do_i_exist")) assert not f1.exists() test.write("do_i_exist","\n") + assert not f1.exists() + f1.built() assert f1.exists() - assert f1.cached_exists() test.unlink("do_i_exist") + assert f1.exists() + f1.built() assert not f1.exists() - assert f1.cached_exists() - f1.build() - assert not f1.cached_exists() # For some reason, in Win32, the \x1a character terminates # the reading of files in text mode. This tests that |