You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2007/10/30 17:31:50 UTC

svn commit: r590137 - /apr/apr/trunk/test/testlfs.c

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 */