Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 0f / be2293ce6cd361a24def2028b5c1666bc91c68
1 Return-Path: <bremner@unb.ca>\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 D05D7431FB6\r
6         for <notmuch@notmuchmail.org>; Mon, 13 Dec 2010 19:06:34 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id fpIsgGg2wb55 for <notmuch@notmuchmail.org>;\r
16         Mon, 13 Dec 2010 19:06:34 -0800 (PST)\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id C9027431FB5\r
21         for <notmuch@notmuchmail.org>; Mon, 13 Dec 2010 19:06:33 -0800 (PST)\r
22 Received: from zancas.localnet\r
23         (fctnnbsc30w-142167185189.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
24         [142.167.185.189]) (authenticated bits=0)\r
25         by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id oBE36XWw014406\r
26         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
27         Mon, 13 Dec 2010 23:06:33 -0400\r
28 Received: from bremner by zancas.localnet with local (Exim 4.72)\r
29         (envelope-from <bremner@unb.ca>)\r
30         id 1PSLCG-0004J8-NV; Mon, 13 Dec 2010 23:05:00 -0400\r
31 From: David Bremner <david@tethera.net>\r
32 To: notmuch@notmuchmail.org\r
33 Subject: fix for Debian build failures\r
34 User-Agent: Notmuch/0.5-29-gb3caef1 (http://notmuchmail.org) Emacs/23.2.1\r
35         (x86_64-pc-linux-gnu)\r
36 Date: Mon, 13 Dec 2010 23:05:00 -0400\r
37 Message-ID: <87mxo9oy03.fsf@zancas.localnet>\r
38 MIME-Version: 1.0\r
39 Content-Type: multipart/mixed; boundary="=-=-="\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Tue, 14 Dec 2010 03:06:34 -0000\r
53 \r
54 --=-=-=\r
55 \r
56 resent because of subscription issues.\r
57 \r
58 I think the following patch might fix the build failures on Debian.  The\r
59 idea is to kill the test before the build process kills the whole build.\r
60 \r
61 Let me know if you'd like me to prepare an upload of 0.5+this-patch.\r
62 \r
63 \r
64 --=-=-=\r
65 Content-Type: text/x-diff\r
66 Content-Disposition: attachment;\r
67  filename=0001-tests-Add-optional-use-of-timeout-utility-if-present.patch\r
68 Content-Description: patch to add timeout to emacs tests\r
69 \r
70 >From a060745745d82dc9531ed456428420f26ad2833b Mon Sep 17 00:00:00 2001\r
71 From: David Bremner <bremner@unb.ca>\r
72 Date: Mon, 13 Dec 2010 22:00:47 -0400\r
73 Subject: [PATCH] tests: Add optional use of timeout utility, if present. Add to emacs tests.\r
74 \r
75 The goal here is to treat a hung test as a failure. The emacs test for\r
76 sending mail is known to be problematic on the debian\r
77 autobuilders. This is both a bandaid fix for that, and a sensible long\r
78 term feature.\r
79 \r
80 Currently a fixed timeout of 5 minutes is used.\r
81 ---\r
82  test/test-lib.sh |   10 +++++++++-\r
83  1 files changed, 9 insertions(+), 1 deletions(-)\r
84 \r
85 diff --git a/test/test-lib.sh b/test/test-lib.sh\r
86 index 418eaa7..639e6ae 100644\r
87 --- a/test/test-lib.sh\r
88 +++ b/test/test-lib.sh\r
89 @@ -793,7 +793,7 @@ emacs \$BATCH --no-init-file --no-site-file \\r
90         --eval "(progn (set-frame-width (window-frame (get-buffer-window)) 80) \$@)"\r
91  EOF\r
92         chmod a+x ./run_emacs\r
93 -       ./run_emacs "$@"\r
94 +       $TEST_TIMEOUT_CMD ./run_emacs "$@"\r
95  }\r
96  \r
97  \r
98 @@ -986,3 +986,11 @@ test -z "$NO_PYTHON" && test_set_prereq PYTHON\r
99  # test whether the filesystem supports symbolic links\r
100  ln -s x y 2>/dev/null && test -h y 2>/dev/null && test_set_prereq SYMLINKS\r
101  rm -f y\r
102 +\r
103 +# test for timeout utility\r
104 +if command -v timeout >/dev/null; then\r
105 +    TEST_TIMEOUT_CMD="timeout 5m " \r
106 +else\r
107 +    TEST_TIMEOUT_CMD=""\r
108 +fi\r
109 +echo $TEST_TIMEOUT_CMD\r
110 \ No newline at end of file\r
111 -- \r
112 1.7.2.3\r
113 \r
114 \r
115 --=-=-=--\r