unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Bremner <david@tethera.net>
To: notmuch@notmuchmail.org
Subject: Re: [PATCH 1/2] test: delay watchdog checks in emacs.
Date: Wed, 01 Jan 2014 11:58:11 -0400	[thread overview]
Message-ID: <87a9ffofsc.fsf@zancas.localnet> (raw)
In-Reply-To: <1359501973-27671-2-git-send-email-david@tethera.net>

david@tethera.net writes:

> From: David Bremner <bremner@debian.org>
>
> Instead of checking immediately for the watched process, delay a
> minute, or in the case that process-attributes returns nil, for two
> minutes.  This is intended to cope with the case that
> process-attributes is unimplimented, and returns always returns nil.
> In this case, the watchdog check is the same as the two minute limit
> imposed by timeout.
> ---

It seems there are still lingering problems with this.

On a Debian Hurd system, the following consistently dies after running
for two minutes. It seems like our test harness can't cope with the
emacs server dying as well as it ought to.  I'm not sure what the right
answer is. A crude workaround would be to increase the hardcoded
timeout. Alternatively, maybe test_emacs should make some effort to
restart the server if it is no longer running.

#!/usr/bin/env bash
test_description="emacs fcc"
. ./test-lib.sh

for ((count=1; count<=1000; count++)); do
    id=fub.$count
    subject=meh
    echo attempting $count
    emacs_fcc_message \
	"$subject" \
	'This is a test message with inline attachment with a filename' \
	"(mml-attach-file \"$TEST_DIRECTORY/README\" nil nil \"inline\")
         (message-goto-eoh)
         (insert \"Message-ID: <$id>\n\")"
    delivered=$(find $MAIL_DIR/sent -type f | wc -l)
    if [[ $delivered != $count ]]; then
	GIT_EXIT_OK=1
	echo FATAL: $count attempted $delivered delivered
	exit 1;
    fi
done

test_done

  reply	other threads:[~2014-01-01 15:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-29 23:26 another bug fix release: 0.15.2, in progress david
2013-01-29 23:26 ` [PATCH 1/2] test: delay watchdog checks in emacs david
2014-01-01 15:58   ` David Bremner [this message]
2014-01-11  2:36     ` [PATCH] test/emacs: replace the use of process-attributes with kill(1) David Bremner
2014-01-11 10:14       ` Tomi Ollila
2014-01-11 17:25         ` [PATCH] test/emacs: replace the use of process-attributes with signal-process David Bremner
2014-01-11 18:50           ` Tomi Ollila
2014-01-13  0:09           ` David Bremner
2013-01-29 23:26 ` [PATCH 2/2] NEWS: News for 0.15.2 david
2013-01-30  0:37 ` another bug fix release: 0.15.2, in progress Tomi Ollila
2013-02-10  1:17 ` David Bremner
2013-02-10 13:19   ` [Spam-verdenking][english 100%] " Robert Mast
2013-02-10 13:44     ` David Bremner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a9ffofsc.fsf@zancas.localnet \
    --to=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).