subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1845013 - /subversion/trunk/subversion/tests/cmdline/basic_tests.py
Date Sun, 28 Oct 2018 10:40:04 GMT
Author: brane
Date: Sun Oct 28 10:40:04 2018
New Revision: 1845013

URL: http://svn.apache.org/viewvc?rev=1845013&view=rev
Log:
Add XFAIL tests for issue #4530.

* subversion/tests/cmdline/basic_tests.py
  (do_move_with_at_signs): New; helper function for new test cases.
  (move_to_target_with_leading_at_sign,
   move_to_target_with_leading_and_trailing_at_sign): New test cases.
  (test_list): Register the new test cases.

Modified:
    subversion/trunk/subversion/tests/cmdline/basic_tests.py

Modified: subversion/trunk/subversion/tests/cmdline/basic_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/basic_tests.py?rev=1845013&r1=1845012&r2=1845013&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/basic_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/basic_tests.py Sun Oct 28 10:40:04 2018
@@ -3050,6 +3050,33 @@ def peg_rev_on_non_existent_wc_path(sbox
                                      'cat', '-r2', sbox.ospath('mu3') + '@3')
 
 
+def do_move_with_at_signs(sbox, src, dst, dst_cmdline):
+  sbox.build()
+
+  expected_status = svntest.actions.get_virginal_state(sbox.wc_dir, 1)
+  expected_status.tweak(src, status='D ', moved_to=dst)
+  expected_status.add({dst: Item(status='A ', copied='+',
+                                 moved_from=src, wc_rev='-')})
+
+  sbox.simple_move(src, dst_cmdline)
+  svntest.actions.run_and_verify_status(sbox.wc_dir, expected_status)
+
+@Issue(4530)
+@XFail()
+def move_to_target_with_leading_at_sign(sbox):
+  "rename to dir/@file"
+
+  do_move_with_at_signs(sbox, 'iota', 'A/@upsilon', 'A/@upsilon')
+
+
+@Issue(4530)
+@XFail()
+def move_to_target_with_leading_and_trailing_at_sign(sbox):
+  "rename to dir/@file@"
+
+  do_move_with_at_signs(sbox, 'iota', 'A/@upsilon', 'A/@upsilon@')
+
+
 @Issue(4532)
 def diff_previous_revision_of_r0(sbox):
   """diff -rPREV on WC at revision 0"""
@@ -3311,6 +3338,8 @@ test_list = [ None,
               rm_missing_with_case_clashing_ondisk_item,
               delete_conflicts_one_of_many,
               peg_rev_on_non_existent_wc_path,
+              move_to_target_with_leading_at_sign,
+              move_to_target_with_leading_and_trailing_at_sign,
               diff_previous_revision_of_r0,
               mkdir_parents_target_exists_on_disk,
               plaintext_password_storage_disabled,



Mime
View raw message