From: Jani Nikula Date: Mon, 2 Mar 2015 17:47:02 +0000 (+0200) Subject: [PATCH 2/4] test: add some more time tests X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8181b5c5971225f61520096047ee6fb79898f8d2;p=notmuch-archives.git [PATCH 2/4] test: add some more time tests --- diff --git a/40/57265e72cf783647327da131fe9afcad686789 b/40/57265e72cf783647327da131fe9afcad686789 new file mode 100644 index 000000000..555d0859c --- /dev/null +++ b/40/57265e72cf783647327da131fe9afcad686789 @@ -0,0 +1,90 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id AE1C7431FBD + for ; Mon, 2 Mar 2015 10:24:14 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 1.738 +X-Spam-Level: * +X-Spam-Status: No, score=1.738 tagged_above=-999 required=5 + tests=[DNS_FROM_AHBL_RHSBL=2.438, RCVD_IN_DNSWL_LOW=-0.7] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id PsT8P-6X1jht for ; + Mon, 2 Mar 2015 10:24:11 -0800 (PST) +Received: from mail-we0-f174.google.com (mail-we0-f174.google.com + [74.125.82.174]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id DD1A8414B85 + for ; Mon, 2 Mar 2015 09:49:29 -0800 (PST) +Received: by wevm14 with SMTP id m14so34840520wev.13 + for ; Mon, 02 Mar 2015 09:46:49 -0800 (PST) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to + :references; + bh=0sgXF6llWJj9p+AejWQ1+/r7ul9r6L8UqTnmQh66+lA=; + b=lxhj+En0b2GDKbRTxPlP38wk/WXObAcLntWDHTFnu70swb0C9tOT8AXG+1TY+NyNFT + gx3sZHT2a/pZOJjlr0K++Br8riTpr7xRx7+P1FBo0zwdOwwQK1fIWrhoclAZRRm2YDt6 + 5eh2fmcXNHe8/mnlk3JZ/8msQUiUnIGKcJVru40CRURyiO48sNhRv/PmZ99laFzYxzVm + 0AcvvBIc04IbxzTU+CeCyeu1xxIuOxfQm4xUMH7Gs5tkZP/NFNXpdm9MWP5jRHj8hGOC + GIGtCqn47igF4mlsoCK/t+Wi5PJvH0o/34ZgHVTbGgOWtmCrauTkex1DKBg8R5XO6WmM + FY4A== +X-Gm-Message-State: + ALoCoQlF5/HRNZYTNKnEDMc3m98NpvcYQECKI/pj4610HWqLfFD56/hYyq9b+RVZhfqa8vkpxfp0 +X-Received: by 10.194.174.164 with SMTP id bt4mr54507210wjc.7.1425318409737; + Mon, 02 Mar 2015 09:46:49 -0800 (PST) +Received: from localhost (mobile-internet-bcee3b-76.dhcp.inet.fi. + [188.238.59.76]) + by mx.google.com with ESMTPSA id k1sm20217333wjn.9.2015.03.02.09.46.48 + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Mon, 02 Mar 2015 09:46:48 -0800 (PST) +From: Jani Nikula +To: notmuch@notmuchmail.org +Subject: [PATCH 2/4] test: add some more time tests +Date: Mon, 2 Mar 2015 19:47:02 +0200 +Message-Id: <1425318424-27017-2-git-send-email-jani@nikula.org> +X-Mailer: git-send-email 2.1.4 +In-Reply-To: <1425318424-27017-1-git-send-email-jani@nikula.org> +References: <1425318424-27017-1-git-send-email-jani@nikula.org> +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Mon, 02 Mar 2015 18:24:14 -0000 + +Ensure the seconds are set properly. +--- + test/T490-parse-time-string.sh | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/test/T490-parse-time-string.sh b/test/T490-parse-time-string.sh +index 08a834eb1a80..ca3ecb4036ed 100755 +--- a/test/T490-parse-time-string.sh ++++ b/test/T490-parse-time-string.sh +@@ -51,6 +51,11 @@ Aug 3 23:06:06 2012 ==> Fri Aug 03 23:06:06 +0000 2012 # date(1) def + Fri, 03 Aug 2012 23:07:46 +0100 ==> Fri Aug 03 22:07:46 +0000 2012 # rfc-2822 + 2012-08-03 23:09:37+03:00 ==> Fri Aug 03 20:09:37 +0000 2012 # rfc-3339 seconds + ++10:30:40 ==> Tue Jan 11 10:30:40 +0000 2011 ++10:30:40 ==^> Tue Jan 11 10:30:40 +0000 2011 ++10:30:40 ==^^> Tue Jan 11 10:30:40 +0000 2011 ++10:30:40 ==_> Tue Jan 11 10:30:40 +0000 2011 ++ + 10s ==> Tue Jan 11 12:13:04 +0000 2011 + 19701223s ==> Fri May 28 11:39:31 +0000 2010 + 19701223 ==> Wed Dec 23 12:13:14 +0000 1970 +-- +2.1.4 +