apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r590137 - /apr/apr/trunk/test/testlfs.c
Date Tue, 30 Oct 2007 16:31:50 GMT
Author: jorton
Date: Tue Oct 30 09:31:33 2007
New Revision: 590137

URL: http://svn.apache.org/viewvc?rev=590137&view=rev
Log:
* test/testlfs.c (test_open): Fix style issues introduced in
r589929; no functional change.

Modified:
    apr/apr/trunk/test/testlfs.c

Modified: apr/apr/trunk/test/testlfs.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testlfs.c?rev=590137&r1=590136&r2=590137&view=diff
==============================================================================
--- apr/apr/trunk/test/testlfs.c (original)
+++ apr/apr/trunk/test/testlfs.c Tue Oct 30 09:31:33 2007
@@ -56,7 +56,6 @@
     }
 
     /* First attempt a 1MB sparse file so we don't tax the poor test box */
-
     rv = apr_file_open(&f, TESTFN, APR_FOPEN_CREATE | APR_FOPEN_WRITE
                                  | APR_FOPEN_TRUNCATE | APR_FOPEN_SPARSE,
                        APR_OS_DEFAULT, p);
@@ -73,17 +72,14 @@
      * or if it's not an obviously small allocation but the allocation
      * unit doesn't appear insanely large
      */
-    if ((rv != APR_SUCCESS) || ((testsize.csize > oneMB)
-                             && (testsize.csize < oneMB * 2)))
-    {
+    if (rv != APR_SUCCESS || (testsize.csize > oneMB
+                              && testsize.csize < oneMB * 2)) {
         ABTS_NOT_IMPL(tc, "Creation of large file (apparently not sparse)");
 
         madefile = 0;
-    }
-    else
-    {
+    } 
+    else {
         /* Proceed with our 8GB sparse file now */
-
         rv = apr_file_trunc(f, eightGB);
 
         /* 8GB may pass rlimits or filesystem limits */



Mime
View raw message