Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 36920 invoked from network); 30 Oct 2007 16:39:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2007 16:39:15 -0000 Received: (qmail 7322 invoked by uid 500); 30 Oct 2007 16:32:05 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 7278 invoked by uid 500); 30 Oct 2007 16:32:05 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 7267 invoked by uid 99); 30 Oct 2007 16:32:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2007 09:32:05 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2007 16:32:28 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 09E831A9832; Tue, 30 Oct 2007 09:31:53 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r590137 - /apr/apr/trunk/test/testlfs.c Date: Tue, 30 Oct 2007 16:31:50 -0000 To: commits@apr.apache.org From: jorton@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071030163154.09E831A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 */