Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 84 / 22338a030ff5b2be037392de74074312922900
1 Return-Path: <david@tethera.net>\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 D1900431FC0\r
6         for <notmuch@notmuchmail.org>; Wed,  1 Jan 2014 07:58:25 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 TDYeAqmK1h5h for <notmuch@notmuchmail.org>;\r
16         Wed,  1 Jan 2014 07:58:19 -0800 (PST)\r
17 Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])\r
18         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 52357431FAF\r
21         for <notmuch@notmuchmail.org>; Wed,  1 Jan 2014 07:58:19 -0800 (PST)\r
22 Received: from remotemail by yantan.tethera.net with local (Exim 4.80)\r
23         (envelope-from <david@tethera.net>)\r
24         id 1VyOBT-00029y-Ol; Wed, 01 Jan 2014 11:58:15 -0400\r
25 Received: (nullmailer pid 15508 invoked by uid 1000); Wed, 01 Jan 2014\r
26         15:58:11 -0000\r
27 From: David Bremner <david@tethera.net>\r
28 To: notmuch@notmuchmail.org\r
29 Subject: Re: [PATCH 1/2] test: delay watchdog checks in emacs.\r
30 In-Reply-To: <1359501973-27671-2-git-send-email-david@tethera.net>\r
31 References: <1359501973-27671-1-git-send-email-david@tethera.net>\r
32         <1359501973-27671-2-git-send-email-david@tethera.net>\r
33 User-Agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/24.3.1\r
34         (x86_64-pc-linux-gnu)\r
35 Date: Wed, 01 Jan 2014 11:58:11 -0400\r
36 Message-ID: <87a9ffofsc.fsf@zancas.localnet>\r
37 MIME-Version: 1.0\r
38 Content-Type: text/plain\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.13\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43         <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Wed, 01 Jan 2014 15:58:26 -0000\r
52 \r
53 david@tethera.net writes:\r
54 \r
55 > From: David Bremner <bremner@debian.org>\r
56 >\r
57 > Instead of checking immediately for the watched process, delay a\r
58 > minute, or in the case that process-attributes returns nil, for two\r
59 > minutes.  This is intended to cope with the case that\r
60 > process-attributes is unimplimented, and returns always returns nil.\r
61 > In this case, the watchdog check is the same as the two minute limit\r
62 > imposed by timeout.\r
63 > ---\r
64 \r
65 It seems there are still lingering problems with this.\r
66 \r
67 On a Debian Hurd system, the following consistently dies after running\r
68 for two minutes. It seems like our test harness can't cope with the\r
69 emacs server dying as well as it ought to.  I'm not sure what the right\r
70 answer is. A crude workaround would be to increase the hardcoded\r
71 timeout. Alternatively, maybe test_emacs should make some effort to\r
72 restart the server if it is no longer running.\r
73 \r
74 #!/usr/bin/env bash\r
75 test_description="emacs fcc"\r
76 . ./test-lib.sh\r
77 \r
78 for ((count=1; count<=1000; count++)); do\r
79     id=fub.$count\r
80     subject=meh\r
81     echo attempting $count\r
82     emacs_fcc_message \\r
83         "$subject" \\r
84         'This is a test message with inline attachment with a filename' \\r
85         "(mml-attach-file \"$TEST_DIRECTORY/README\" nil nil \"inline\")\r
86          (message-goto-eoh)\r
87          (insert \"Message-ID: <$id>\n\")"\r
88     delivered=$(find $MAIL_DIR/sent -type f | wc -l)\r
89     if [[ $delivered != $count ]]; then\r
90         GIT_EXIT_OK=1\r
91         echo FATAL: $count attempted $delivered delivered\r
92         exit 1;\r
93     fi\r
94 done\r
95 \r
96 test_done\r
97 \r
98 \r