subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From phi...@apache.org
Subject svn commit: r1577082 - /subversion/trunk/subversion/tests/cmdline/special_tests.py
Date Thu, 13 Mar 2014 10:12:50 GMT
Author: philip
Date: Thu Mar 13 10:12:50 2014
New Revision: 1577082

URL: http://svn.apache.org/r1577082
Log:
Add an XFAIL regression test for issue 4479, multiline svn:special truncated.

* subversion/tests/cmdline/special_tests.py
  (multiline_special): New test.
  (test_list): Add new test.

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

Modified: subversion/trunk/subversion/tests/cmdline/special_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/special_tests.py?rev=1577082&r1=1577081&r2=1577082&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/special_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/special_tests.py Thu Mar 13 10:12:50 2014
@@ -1221,6 +1221,31 @@ def incoming_symlink_changes(sbox):
                                         None, None, None, None, None,
                                         True)
 
+#----------------------------------------------------------------------
+@XFail()
+@Issue(4479)
+def multiline_special(sbox):
+  "multiline file with svn:special"
+
+  sbox.build()
+  wc_dir = sbox.wc_dir
+
+  sbox.simple_append('iota', 'A second line.\n')
+  sbox.simple_commit();
+  svntest.main.run_svnmucc('propset', 'svn:special', '*',
+                           sbox.repo_url + '/iota',
+                           '-m', 'set svn:special')
+
+  sbox.simple_update(revision=1);
+  sbox.simple_update();
+
+  expected_disk = svntest.main.greek_state.copy()
+  expected_disk.tweak()
+  expected_disk.tweak('iota',
+                      contents="This is the file 'iota'.\nA second line.\n",
+                      props={'svn:special' : '*'})
+  svntest.actions.verify_disk(wc_dir, expected_disk.old_tree(), True)
+
 ########################################################################
 # Run the tests
 
@@ -1252,6 +1277,7 @@ test_list = [ None,
               externals_as_symlink_targets,
               cat_added_symlink,
               incoming_symlink_changes,
+              multiline_special,
              ]
 
 if __name__ == '__main__':



Mime
View raw message