You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ko...@apache.org on 2021/02/23 17:17:01 UTC

svn commit: r1886847 - /subversion/trunk/subversion/tests/libsvn_subr/io-test.c

Author: kotkov
Date: Tue Feb 23 17:17:01 2021
New Revision: 1886847

URL: http://svn.apache.org/viewvc?rev=1886847&view=rev
Log:
* subversion/tests/libsvn_subr/io-test.c
  (test_apr_trunc_workaround): Create the sandbox directory in the correct
   location by using svn_test_make_sandbox_dir(), as done by all other tests
   in this file.

Modified:
    subversion/trunk/subversion/tests/libsvn_subr/io-test.c

Modified: subversion/trunk/subversion/tests/libsvn_subr/io-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_subr/io-test.c?rev=1886847&r1=1886846&r2=1886847&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/io-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_subr/io-test.c Tue Feb 23 17:17:01 2021
@@ -1380,11 +1380,8 @@ test_apr_trunc_workaround(apr_pool_t *po
   char dummy;
 
   /* create a temp folder & schedule it for automatic cleanup */
-  SVN_ERR(svn_dirent_get_absolute(&tmp_dir, "test_apr_trunc_workaround",
-                                  pool));
-  SVN_ERR(svn_io_remove_dir2(tmp_dir, TRUE, NULL, NULL, pool));
-  SVN_ERR(svn_io_make_dir_recursively(tmp_dir, pool));
-  svn_test_add_dir_cleanup(tmp_dir);
+  SVN_ERR(svn_test_make_sandbox_dir(&tmp_dir, "test_apr_trunc_workaround",
+                                    pool));
 
   /* create an r/w file */
   tmp_file = svn_dirent_join(tmp_dir, "file", pool);