You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2015/09/22 12:11:57 UTC

svn commit: r1704511 - /subversion/trunk/subversion/tests/libsvn_client/client-test.c

Author: rhuijben
Date: Tue Sep 22 10:11:54 2015
New Revision: 1704511

URL: http://svn.apache.org/viewvc?rev=1704511&view=rev
Log:
Fix a few tests to properly clean up after running.

* subversion/tests/libsvn_client/client-test.c
  (test_foreign_repos_copy,
   test_remote_only_status): Register everything we create as to be cleaned up.

Modified:
    subversion/trunk/subversion/tests/libsvn_client/client-test.c

Modified: subversion/trunk/subversion/tests/libsvn_client/client-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_client/client-test.c?rev=1704511&r1=1704510&r2=1704511&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_client/client-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_client/client-test.c Tue Sep 22 10:11:54 2015
@@ -740,14 +740,14 @@ test_foreign_repos_copy(const svn_test_o
 
   wc_path = svn_test_data_path("test-foreign-repos-copy", pool);
 
-  wc_path = svn_dirent_join(wc_path, "foreign-wc", pool);
-
   /* Remove old test data from the previous run */
   SVN_ERR(svn_io_remove_dir2(wc_path, TRUE, NULL, NULL, pool));
 
   SVN_ERR(svn_io_make_dir_recursively(wc_path, pool));
   svn_test_add_dir_cleanup(wc_path);
 
+  wc_path = svn_dirent_join(wc_path, "foreign-wc", pool);
+
   rev.kind = svn_opt_revision_head;
   peg_rev.kind = svn_opt_revision_unspecified;
   SVN_ERR(svn_client_create_context(&ctx, pool));
@@ -953,7 +953,7 @@ test_remote_only_status(const svn_test_o
 
   /* Check out a sparse root @r1 of the repository */
   wc_path = svn_test_data_path("test-remote-only-status-wc", pool);
-  /*svn_test_add_dir_cleanup(wc_path);*/
+  svn_test_add_dir_cleanup(wc_path);
   SVN_ERR(svn_io_remove_dir2(wc_path, TRUE, NULL, NULL, pool));
 
   rev.kind = svn_opt_revision_number;