subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1617077 - /subversion/branches/authzperf/subversion/tests/libsvn_repos/repos-test.c
Date Sun, 10 Aug 2014 09:41:43 GMT
Author: brane
Date: Sun Aug 10 09:41:42 2014
New Revision: 1617077

URL: http://svn.apache.org/r1617077
Log:
On the authzperf branch: Fix wrong printf format. The test happens to work
by accident on little-endian platforms.

* subversion/test/libsvn_subr/repos-test.c
  (authz): Use APR_TIME_T_FMT instead of assuming it's a long.

Modified:
    subversion/branches/authzperf/subversion/tests/libsvn_repos/repos-test.c

Modified: subversion/branches/authzperf/subversion/tests/libsvn_repos/repos-test.c
URL: http://svn.apache.org/viewvc/subversion/branches/authzperf/subversion/tests/libsvn_repos/repos-test.c?rev=1617077&r1=1617076&r2=1617077&view=diff
==============================================================================
--- subversion/branches/authzperf/subversion/tests/libsvn_repos/repos-test.c (original)
+++ subversion/branches/authzperf/subversion/tests/libsvn_repos/repos-test.c Sun Aug 10 09:41:42
2014
@@ -22,7 +22,9 @@
 
 #include <stdlib.h>
 #include <string.h>
+
 #include <apr_pools.h>
+#include <apr_time.h>
 
 #include "../svn_test.h"
 
@@ -1448,8 +1450,8 @@ authz(apr_pool_t *pool)
         }
     }
   end = apr_time_now();
-  printf("%ld\n", end - start);
-  printf("%ld\n", (k * (i - 1) * 20 * 1000000l) / (end - start));
+  printf("%"APR_TIME_T_FMT"\n", end - start);
+  printf("%"APR_TIME_T_FMT"\n", (k * (i - 1) * 20 * 1000000l) / (end - start));
 
   /* Verify that the rule on /dir2/secret doesn't affect this
      request */



Mime
View raw message