diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2005-12-14 03:13:57 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2005-12-14 03:13:57 +0000 |
commit | 2a934756dd05992b409bfcd229bc7a6c06bff929 (patch) | |
tree | a58aebfd464fb9ef46221e3a45801655282175f4 /rdiff-backup/testing | |
parent | 1aa8b6bc7db815688a44671950f4cdd64c3df1fd (diff) | |
download | rdiff-backup-2a934756dd05992b409bfcd229bc7a6c06bff929.tar.gz |
Fix for KeyError while incrementing in v1.1.3
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@706 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing')
-rw-r--r-- | rdiff-backup/testing/finaltest.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rdiff-backup/testing/finaltest.py b/rdiff-backup/testing/finaltest.py index 6dc73f2..d773c21 100644 --- a/rdiff-backup/testing/finaltest.py +++ b/rdiff-backup/testing/finaltest.py @@ -711,5 +711,19 @@ class FinalBugs(PathSetter): rp1_d_f.setdata() assert rp1_d_f.isreg(), 'File %s corrupted' % (rp1_d_f.path,) + def test_CCPP_keyerror(self): + """Test when no change until middle of a directory + + This tests CCPP, to make sure it isn't asked to provide rorps + for indicies that are out of the cache. + + """ + self.delete_tmpdirs() + rdiff_backup(1, 1, 'testfiles/bigdir', 'testfiles/output') + rp = rpath.RPath(Globals.local_connection, + 'testfiles/bigdir/subdir3/subdir49/file49') + assert rp.isreg(), rp + rp.touch() + rdiff_backup(1, 1, 'testfiles/bigdir', 'testfiles/output') if __name__ == "__main__": unittest.main() |