subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1327592 - /subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c
Date Wed, 18 Apr 2012 17:36:01 GMT
Author: stefan2
Date: Wed Apr 18 17:36:00 2012
New Revision: 1327592

URL: http://svn.apache.org/viewvc?rev=1327592&view=rev
Log:
* subversion/tests/libsvn_subr/named_atomic-test.c
  (init_test_shm): use svn_io_open_unique_file3 to generate temp names

Suggested by: rhuijben

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

Modified: subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c?rev=1327592&r1=1327591&r2=1327592&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c Wed Apr 18 17:36:00
2012
@@ -153,16 +153,24 @@ init_test_shm(apr_pool_t *pool)
   if (name_namespace == NULL)
     {
       apr_pool_t *global_pool = svn_pool_create(NULL);
-      SVN_ERR(svn_io_open_uniquely_named(NULL,
-                                        &name_namespace,
-                                        NULL,
-                                        NULL,
-                                        NULL,
-                                        svn_io_file_del_on_pool_cleanup,
-                                        global_pool,
-                                        pool));
-      name_namespace1 = apr_pstrcat(global_pool, name_namespace, "1", NULL);
-      name_namespace2 = apr_pstrcat(global_pool, name_namespace, "2", NULL);
+      SVN_ERR(svn_io_open_unique_file3(NULL,
+                                       &name_namespace,
+                                       NULL,
+                                       svn_io_file_del_none,
+                                       global_pool,
+                                       pool));
+      SVN_ERR(svn_io_open_unique_file3(NULL,
+                                       &name_namespace1,
+                                       NULL,
+                                       svn_io_file_del_none,
+                                       global_pool,
+                                       pool));
+      SVN_ERR(svn_io_open_unique_file3(NULL,
+                                       &name_namespace2,
+                                       NULL,
+                                       svn_io_file_del_none,
+                                       global_pool,
+                                       pool));
     }
     
   /* skip tests if the current user does not have the required privileges */



Mime
View raw message