diff options
| author | Steven Knight <knight@baldmt.com> | 2003-03-30 16:55:46 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2003-03-30 16:55:46 (GMT) |
| commit | 786aa89ee387927f0ef142f3328b3c0eebb1da5a (patch) | |
| tree | 8e8f86ec954f00dfba25179cb0257db9369c3b66 /src/engine/SCons/Node/FSTests.py | |
| parent | d3ce17c54525be85011f667f584611cc02ee9a11 (diff) | |
| download | SCons-786aa89ee387927f0ef142f3328b3c0eebb1da5a.zip SCons-786aa89ee387927f0ef142f3328b3c0eebb1da5a.tar.gz SCons-786aa89ee387927f0ef142f3328b3c0eebb1da5a.tar.bz2 | |
Fix a bug when BuildDir(duplicate=0) is used with multiple SConscript files. (Charles Crain)
Diffstat (limited to 'src/engine/SCons/Node/FSTests.py')
| -rw-r--r-- | src/engine/SCons/Node/FSTests.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/engine/SCons/Node/FSTests.py b/src/engine/SCons/Node/FSTests.py index 0bba0ed..7836a13 100644 --- a/src/engine/SCons/Node/FSTests.py +++ b/src/engine/SCons/Node/FSTests.py @@ -378,6 +378,14 @@ class BuildDirTestCase(unittest.TestCase): test.unlink( "src/foo" ) test.unlink( "build/foo" ) + # Test against a former bug. Make sure we can get a repository + # path for the build directory itself! + fs=SCons.Node.FS.FS(test.workpath('work')) + test.subdir('work') + fs.BuildDir('build/var3', 'src', duplicate=0) + d1 = fs.Dir('build/var3') + assert d1.rdir() == fs.Dir('src'), str(d1.rdir()) + # verify the link creation attempts in file_link() class LinkSimulator : """A class to intercept os.[sym]link() calls and track them.""" |
