Re: Possible bug in tests with emacs 23.2.1 (debian stable)

Subject: Re: Possible bug in tests with emacs 23.2.1 (debian stable)

Date: Tue, 03 Jan 2012 20:19:23 +0000

To: Tomi Ollila, Tomi Ollila, notmuch@notmuchmail.org

Cc:

From: Mark Walters


On Tue, 03 Jan 2012 15:07:04 +0200, Tomi Ollila <tomi.ollila@nixu.com> wrote:

> I did some more testing; doing
> 
> emacsclient --eval '(defun yes-or-no-p (prompt) t)' --eval '(kill-emacs)'
> 
> Will make emacs 23.2.1 exit also, so IMO this "workaround" could be
> used to "fix" the problem. 

I can confirm that the patch below (using this suggestion) fixes the
tests for me on emacs 23.2.1 and, on a different machine with emacs
23.3.1 they work just as before.

Best wishes

Mark

diff --git a/test/test-lib.sh b/test/test-lib.sh
index 82767c0..218ce91 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -866,7 +866,7 @@ test_done () {
 
 	echo
 
-	[ -n "$EMACS_SERVER" ] && test_emacs '(kill-emacs)'
+	[ -n "$EMACS_SERVER" ] && test_emacs '(defun yes-or-no-p (prompt) t) (kill-emacs)'
 
 	if [ "$test_failure" = "0" ]; then
 	    if [ "$test_broken" = "0" ]; then	    

Thread: