Add a test for the recently reported case where an invalid item was installed
in the workqueue, which breaks svn cleanup.
* subversion/tests/cmdline/update_tests.py
(update_add_missing_local_add): New function.
(test_list): Add new test.
@@ -6840,6 +6840,21 @@ def update_delete_switched(sbox):
svntest.actions.run_and_verify_update(wc_dir, None, None, expected_status,
[], False, sbox.ospath('A'), '-r', 0)
+@XFail()
+def update_add_missing_local_add(sbox):
+ "update adds missing local addition"
+
+ sbox.build(read_only=True)
+
+ # Note that updating 'A' to r0 doesn't reproduce this issue...
+ sbox.simple_update('', revision='0')
+ sbox.simple_mkdir('A')
+ sbox.simple_add_text('mumumu', 'A/mu')
+ os.unlink(sbox.ospath('A/mu'))
+ os.rmdir(sbox.ospath('A'))
+
+ sbox.simple_update()
+
#######################################################################
# Run the tests
@@ -6930,6 +6945,7 @@ test_list = [ None,
update_add_conflicted_deep,
missing_tmp_update,
update_delete_switched,
+ update_add_missing_local_add,
]
if __name__ == '__main__':
