Return-Path: Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: (qmail 71674 invoked from network); 3 Jun 2010 10:06:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Jun 2010 10:06:12 -0000 Received: (qmail 30147 invoked by uid 500); 3 Jun 2010 10:06:12 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 30043 invoked by uid 500); 3 Jun 2010 10:06:10 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 30035 invoked by uid 99); 3 Jun 2010 10:06:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jun 2010 10:06:09 +0000 X-ASF-Spam-Status: No, hits=-1410.2 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jun 2010 10:06:08 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 7CD3623889B3; Thu, 3 Jun 2010 10:05:48 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r950931 - /subversion/trunk/subversion/tests/cmdline/copy_tests.py Date: Thu, 03 Jun 2010 10:05:48 -0000 To: commits@subversion.apache.org From: stylesen@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100603100548.7CD3623889B3@eris.apache.org> 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__':