1 Return-Path: <jani@nikula.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id A4D50429E41
\r
6 for <notmuch@notmuchmail.org>; Mon, 2 Mar 2015 10:30:57 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=1.738 tagged_above=-999 required=5
\r
12 tests=[DNS_FROM_AHBL_RHSBL=2.438, RCVD_IN_DNSWL_LOW=-0.7]
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id CS-fSdGxA-Iz for <notmuch@notmuchmail.org>;
\r
17 Mon, 2 Mar 2015 10:30:54 -0800 (PST)
\r
18 Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com
\r
19 [74.125.82.50]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
20 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
21 17AEB414B86 for <notmuch@notmuchmail.org>; Mon, 2 Mar 2015 09:49:32 -0800
\r
23 Received: by wghn12 with SMTP id n12so35093173wgh.1
\r
24 for <notmuch@notmuchmail.org>; Mon, 02 Mar 2015 09:46:52 -0800 (PST)
\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
26 d=1e100.net; s=20130820;
\r
27 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
\r
29 bh=YYGPQwZyQLwQnR/FCFztPCauFxWqujng3ah7GFYV5ZE=;
\r
30 b=YooDChFDJoB1zbShA8E2h8cInacJ6adWJbfOmdykQJg/Yy4HuKJSUH0/9MCZ0vhkgj
\r
31 acAHVzYpmHBuuwUqqDmH102DEdksQQ3IgHC7KtJJLFCDlseI3CRGna3dDMx9yoPpFgOw
\r
32 tJEP7+XCk7o2QDjdD+PwP2ROnbWv2aUtrgJpkMUs6qXzkjqNRthUDwcCZa9hLK3J6cEW
\r
33 YfyuENXnQxvWaMAMEV7awJHTf+eTIb8HWMRHXEfs3+nORMRLHJvLqYSGVGWxM076rJX3
\r
34 9/WUo/Es8GHLKX4nMuzqYp3HsqzmmPxhEgrhoiBGMrm7UHqE77UaCRzalD8YQH+2LMsc
\r
37 ALoCoQkemXStd1j8mIo65X2KD2OzWaGIQqnO38CLvCDg+g68ebc4QushqgGBrBIEN8U6ZkuYd/6N
\r
38 X-Received: by 10.180.82.103 with SMTP id h7mr19861933wiy.30.1425318412010;
\r
39 Mon, 02 Mar 2015 09:46:52 -0800 (PST)
\r
40 Received: from localhost (mobile-internet-bcee3b-76.dhcp.inet.fi.
\r
41 [188.238.59.76]) by mx.google.com with ESMTPSA id
\r
42 s19sm16990950wik.18.2015.03.02.09.46.50
\r
43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
\r
44 Mon, 02 Mar 2015 09:46:51 -0800 (PST)
\r
45 From: Jani Nikula <jani@nikula.org>
\r
46 To: notmuch@notmuchmail.org
\r
47 Subject: [PATCH 3/4] test: extract and flag second rounding tests as broken
\r
48 Date: Mon, 2 Mar 2015 19:47:03 +0200
\r
49 Message-Id: <1425318424-27017-3-git-send-email-jani@nikula.org>
\r
50 X-Mailer: git-send-email 2.1.4
\r
51 In-Reply-To: <1425318424-27017-1-git-send-email-jani@nikula.org>
\r
52 References: <1425318424-27017-1-git-send-email-jani@nikula.org>
\r
53 X-BeenThere: notmuch@notmuchmail.org
\r
54 X-Mailman-Version: 2.1.13
\r
56 List-Id: "Use and development of the notmuch mail system."
\r
57 <notmuch.notmuchmail.org>
\r
58 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
59 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
60 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
61 List-Post: <mailto:notmuch@notmuchmail.org>
\r
62 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
63 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
64 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
65 X-List-Received-Date: Mon, 02 Mar 2015 18:30:58 -0000
\r
67 Extract and add some more tests relating to rounding seconds into a
\r
68 separate subtest, and flag it as broken. If seconds are not specified,
\r
69 the time is not set or rounded according to the interface defined in
\r
70 parse-time-string/parse-time-string.h. Instead, seconds are always set
\r
71 to 00 in reality, which is broken.
\r
73 test/T490-parse-time-string.sh | 16 ++++++++++++++--
\r
74 1 file changed, 14 insertions(+), 2 deletions(-)
\r
76 diff --git a/test/T490-parse-time-string.sh b/test/T490-parse-time-string.sh
\r
77 index ca3ecb4036ed..9247bdf89543 100755
\r
78 --- a/test/T490-parse-time-string.sh
\r
79 +++ b/test/T490-parse-time-string.sh
\r
80 @@ -40,8 +40,6 @@ two mo ==> Thu Nov 11 12:13:14 +0000 2010
\r
81 5m ==> Tue Jan 11 12:08:14 +0000 2011
\r
82 dozen mi ==> Tue Jan 11 12:01:14 +0000 2011
\r
83 8am ==> Tue Jan 11 08:00:00 +0000 2011
\r
84 -9:15 ==> Tue Jan 11 09:15:00 +0000 2011
\r
85 -12:34 ==> Tue Jan 11 12:34:00 +0000 2011
\r
86 monday ==> Mon Jan 10 12:13:14 +0000 2011
\r
87 yesterday ==> Mon Jan 10 12:13:14 +0000 2011
\r
88 tomorrow ==> ERROR: KEYWORD
\r
89 @@ -80,4 +78,18 @@ EOF
\r
90 ${TEST_DIRECTORY}/parse-time --ref=${REFERENCE} < INPUT > OUTPUT
\r
91 test_expect_equal_file INPUT OUTPUT
\r
93 +test_begin_subtest "Second rounding tests"
\r
94 +test_subtest_known_broken
\r
95 +REFERENCE=$(_date Tue Jan 11 12:13:14 +0000 2011)
\r
97 +9:15 ==> Tue Jan 11 09:15:14 +0000 2011
\r
98 +12:34 ==> Tue Jan 11 12:34:14 +0000 2011
\r
99 +10:30 ==> Tue Jan 11 10:30:14 +0000 2011
\r
100 +10:30 ==^> Tue Jan 11 10:30:59 +0000 2011
\r
101 +10:30 ==^^> Tue Jan 11 10:31:00 +0000 2011
\r
102 +10:30 ==_> Tue Jan 11 10:30:00 +0000 2011
\r
104 +${TEST_DIRECTORY}/parse-time --ref=${REFERENCE} < INPUT > OUTPUT
\r
105 +test_expect_equal_file INPUT OUTPUT
\r