subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From style...@apache.org
Subject svn commit: r950931 - /subversion/trunk/subversion/tests/cmdline/copy_tests.py
Date Thu, 03 Jun 2010 10:05:48 GMT
Author: stylesen
Date: Thu Jun  3 10:05:48 2010
New Revision: 950931

URL: http://svn.apache.org/viewvc?rev=950931&view=rev
Log:
XFailing Test case for issue #3303 - cannot copy broken symlink

* subversion/tests/cmdline/copy_tests.py
  (copy_broken_symlink): New XFail test.
  (test_list): Add the test to list as XFail, wherein we skip running
   this test in non-POSIX compliant platforms.

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

Modified: subversion/trunk/subversion/tests/cmdline/copy_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/copy_tests.py?rev=950931&r1=950930&r2=950931&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/copy_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/copy_tests.py Thu Jun  3 10:05:48 2010
@@ -4462,6 +4462,37 @@ def copy_added_dir_with_copy(sbox):
   svntest.actions.run_and_verify_status(wc_dir, expected_status)
 
 
+def copy_broken_symlink(sbox):
+  """copy broken symlink"""
+
+  ## See http://subversion.tigris.org/issues/show_bug.cgi?id=3303. ##
+
+  sbox.build()
+  wc_dir = sbox.wc_dir
+
+  new_symlink = os.path.join(wc_dir, 'new_symlink');
+  copied_symlink = os.path.join(wc_dir, 'copied_symlink');
+  os.symlink('linktarget', new_symlink)
+
+  # Alias for svntest.actions.run_and_verify_svn
+  rav_svn = svntest.actions.run_and_verify_svn
+
+  rav_svn(None, None, [], 'add', new_symlink)
+  rav_svn(None, None, [], 'cp', new_symlink, copied_symlink)
+
+  # Check whether both new_symlink and copied_symlink are added to the
+  # working copy
+  expected_status = svntest.actions.get_virginal_state(wc_dir, 1)
+
+  expected_status.add(
+    {
+      'new_symlink'       : Item(status='A ', wc_rev='0'),
+      'copied_symlink'    : Item(status='A ', wc_rev='0'),
+    })
+
+  svntest.actions.run_and_verify_status(wc_dir, expected_status)
+
+
 ########################################################################
 # Run the tests
 
@@ -4552,6 +4583,7 @@ test_list = [ None,
               reverse_merge_move,
               XFail(nonrecursive_commit_of_copy),
               XFail(copy_added_dir_with_copy),
+              XFail(SkipUnless(copy_broken_symlink, svntest.main.is_posix_os)),
              ]
 
 if __name__ == '__main__':



Mime
View raw message