Return-Path: X-Original-To: apmail-apr-commits-archive@www.apache.org Delivered-To: apmail-apr-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8AF56FB47 for ; Fri, 10 May 2013 02:05:48 +0000 (UTC) Received: (qmail 54802 invoked by uid 500); 10 May 2013 02:05:48 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 54740 invoked by uid 500); 10 May 2013 02:05:48 -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 54733 invoked by uid 99); 10 May 2013 02:05:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2013 02:05:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2013 02:05:47 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 0B3A423888E3; Fri, 10 May 2013 02:05:27 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1480854 - /apr/apr/trunk/test/testtime.c Date: Fri, 10 May 2013 02:05:26 -0000 To: commits@apr.apache.org From: fuankg@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130510020527.0B3A423888E3@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: fuankg Date: Fri May 10 02:05:26 2013 New Revision: 1480854 URL: http://svn.apache.org/r1480854 Log: Axe tabs and trailing spaces. Modified: apr/apr/trunk/test/testtime.c Modified: apr/apr/trunk/test/testtime.c URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testtime.c?rev=1480854&r1=1480853&r2=1480854&view=diff ============================================================================== --- apr/apr/trunk/test/testtime.c (original) +++ apr/apr/trunk/test/testtime.c Fri May 10 02:05:26 2013 @@ -61,12 +61,12 @@ static void test_now(abts_case *tc, void current = apr_time_now(); time(&os_now); - timediff = os_now - (current / APR_USEC_PER_SEC); + timediff = os_now - (current / APR_USEC_PER_SEC); /* Even though these are called so close together, there is the chance * that the time will be slightly off, so accept anything between -1 and * 1 second. */ - ABTS_ASSERT(tc, "apr_time and OS time do not agree", + ABTS_ASSERT(tc, "apr_time and OS time do not agree", (timediff > -2) && (timediff < 2)); } @@ -80,21 +80,21 @@ static void test_gmtstr(abts_case *tc, v ABTS_NOT_IMPL(tc, "apr_time_exp_gmt"); } ABTS_TRUE(tc, rv == APR_SUCCESS); - ABTS_STR_EQUAL(tc, "2002-09-14 19:05:36.186711 +0000 [257 Sat]", + ABTS_STR_EQUAL(tc, "2002-09-14 19:05:36.186711 +0000 [257 Sat]", print_time(p, &xt)); } static void test_exp_lt(abts_case *tc, void *data) { - apr_time_t test_times[3]; - int i; + apr_time_t test_times[3]; + int i; - test_times[0] = now; - test_times[1] = leap_year_now; - test_times[2] = 0; + test_times[0] = now; + test_times[1] = leap_year_now; + test_times[2] = 0; - for (i = 0; test_times[i] != 0; i++) { - apr_status_t rv; + for (i = 0; test_times[i] != 0; i++) { + apr_status_t rv; apr_time_exp_t xt; time_t posix_secs = (time_t)apr_time_sec(test_times[i]); struct tm *posix_exp = localtime(&posix_secs); @@ -118,7 +118,7 @@ static void test_exp_lt(abts_case *tc, v CHK_FIELD(tm_yday); CHK_FIELD(tm_isdst); #undef CHK_FIELD - } + } } static void test_exp_get_gmt(abts_case *tc, void *data) @@ -249,9 +249,9 @@ static void test_exp_tz(abts_case *tc, v ABTS_NOT_IMPL(tc, "apr_time_exp_tz"); } ABTS_TRUE(tc, rv == APR_SUCCESS); - ABTS_TRUE(tc, (xt.tm_usec == 186711) && + ABTS_TRUE(tc, (xt.tm_usec == 186711) && (xt.tm_sec == 36) && - (xt.tm_min == 5) && + (xt.tm_min == 5) && (xt.tm_hour == 14) && (xt.tm_mday == 14) && (xt.tm_mon == 8) && @@ -289,7 +289,7 @@ static void test_2038(abts_case *tc, voi xt.tm_hour = 3; xt.tm_min = 14; xt.tm_sec = 7; - + APR_ASSERT_SUCCESS(tc, "explode January 19th, 2038", apr_time_exp_get(&t, &xt)); }