subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1593020 - /subversion/trunk/subversion/tests/cmdline/basic_tests.py
Date Wed, 07 May 2014 14:13:14 GMT
Author: rhuijben
Date: Wed May  7 14:13:14 2014
New Revision: 1593020

URL: http://svn.apache.org/r1593020
Log:
Rename and extend an existing testcase to cover more recently found mod_dav
encoding/escaping problems.

Most likely both mod_dav and mod_dav_svn need patches to resolve the test
failures here. Most of these (but not all) are regressions against earlier
Subversion/Httpd versions.

* subversion/tests/cmdline/basic_tests.py
  (windows_paths_in_repos): Rename to...
  (special_paths_in_repos): ... this and add several cases. Mark XFail for
    mod_dav.

  (test_list): Update reference.

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=1593020&r1=1593019&r2=1593020&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/basic_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/basic_tests.py Wed May  7 14:13:14 2014
@@ -1999,22 +1999,29 @@ def delete_keep_local_twice(sbox):
     logger.warn('Directory was really deleted')
     raise svntest.Failure
 
-def windows_paths_in_repos(sbox):
+@XFail(svntest.main.is_ra_type_dav)
+def special_paths_in_repos(sbox):
   "use folders with names like 'c:hi'"
 
   sbox.build(create_wc = False)
   repo_url       = sbox.repo_url
 
-  chi_url = sbox.repo_url + '/c:hi'
+  for test_url in [ sbox.repo_url + '/c:hi',
+                    sbox.repo_url + '/C:',
+                    sbox.repo_url + '/C&',
+                    sbox.repo_url + '/C<',
+                    sbox.repo_url + '/C# hi',
+                    sbox.repo_url + '/C\\ri',]:
+
+    # do some manipulations on a folder containing a windows drive name.
+    svntest.actions.run_and_verify_svn(None, None, [],
+                                       'mkdir', '-m', 'log_msg',
+                                       test_url)
+
+    svntest.actions.run_and_verify_svn(None, None, [],
+                                       'rm', '-m', 'log_msg',
+                                       test_url)
 
-  # do some manipulations on a folder containing a windows drive name.
-  svntest.actions.run_and_verify_svn(None, None, [],
-                                     'mkdir', '-m', 'log_msg',
-                                     chi_url)
-
-  svntest.actions.run_and_verify_svn(None, None, [],
-                                     'rm', '-m', 'log_msg',
-                                     chi_url)
 
 def basic_rm_urls_one_repo(sbox):
   "remotely remove directories from one repository"
@@ -3143,7 +3150,7 @@ test_list = [ None,
               ls_space_in_repo_name,
               delete_keep_local,
               delete_keep_local_twice,
-              windows_paths_in_repos,
+              special_paths_in_repos,
               basic_rm_urls_one_repo,
               basic_rm_urls_multi_repos,
               automatic_conflict_resolution,



Mime
View raw message