You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2011/04/14 15:18:31 UTC
svn commit: r1092224 -
/subversion/trunk/subversion/tests/cmdline/stat_tests.py
Author: julianfoad
Date: Thu Apr 14 13:18:31 2011
New Revision: 1092224
URL: http://svn.apache.org/viewvc?rev=1092224&view=rev
Log:
Add a test for issue #3855, "status doesn't show 'K' on a locked deleted node."
* subversion/tests/cmdline/stat_tests.py
(status_locked_deleted): New test, XFail.
(test_list): Add it.
Modified:
subversion/trunk/subversion/tests/cmdline/stat_tests.py
Modified: subversion/trunk/subversion/tests/cmdline/stat_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/stat_tests.py?rev=1092224&r1=1092223&r2=1092224&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/stat_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/stat_tests.py Thu Apr 14 13:18:31 2011
@@ -1820,6 +1820,30 @@ def status_nested_wc_old_format(sbox):
# Run the tests
+def simple_lock(sbox, relpath):
+ path = os.path.join(sbox.wc_dir, relpath)
+ svntest.actions.run_and_verify_svn(None, None, [], 'lock', path)
+
+#----------------------------------------------------------------------
+# Regression test for issue #3855 "status doesn't show 'K' on a locked
+# deleted node".
+@Issue(3855)
+@XFail()
+def status_locked_deleted(sbox):
+ "status with locked deleted file"
+
+ sbox.build()
+ iota_path = os.path.join(sbox.wc_dir, 'iota')
+
+ sbox.simple_rm('iota')
+ simple_lock(sbox, 'iota')
+ svntest.actions.run_and_verify_svn(None, ['D K %s\n' % iota_path], [],
+ 'status', iota_path)
+
+########################################################################
+# Run the tests
+
+
# list all tests here, starting with None:
test_list = [ None,
status_unversioned_file_in_current_dir,
@@ -1854,6 +1878,7 @@ test_list = [ None,
status_dash_u_type_change,
status_with_tree_conflicts,
status_nested_wc_old_format,
+ status_locked_deleted,
]
if __name__ == '__main__':