From d6186ae5906ff57bf4cca05c0d65e90d958a62f4 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Sun, 2 Sep 2012 17:48:35 +0300 Subject: [PATCH] [PATCH v2 3/5] test: fix hook-counter to accept the new no-display param --- 3f/f5a0057f70b60466d1777d62f65938a48bd0a6 | 91 +++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 3f/f5a0057f70b60466d1777d62f65938a48bd0a6 diff --git a/3f/f5a0057f70b60466d1777d62f65938a48bd0a6 b/3f/f5a0057f70b60466d1777d62f65938a48bd0a6 new file mode 100644 index 000000000..b73ce13bc --- /dev/null +++ b/3f/f5a0057f70b60466d1777d62f65938a48bd0a6 @@ -0,0 +1,91 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 938EC429E29 + for ; Sun, 2 Sep 2012 07:49:01 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id bpGxf1VTbx+j for ; + Sun, 2 Sep 2012 07:49:00 -0700 (PDT) +Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com + [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 11FA3431FD9 + for ; Sun, 2 Sep 2012 07:48:50 -0700 (PDT) +Received: by mail-lpp01m010-f53.google.com with SMTP id c1so3338105lah.26 + for ; Sun, 02 Sep 2012 07:48:50 -0700 (PDT) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=google.com; s=20120113; + h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references + :in-reply-to:references:x-gm-message-state; + bh=n23bydRZ6ELMht3L2mExiq+EgpwZoMBoybNJcLdt1uk=; + b=Kt3JQ6siKCeberyY6R2qnBvW/7qz2f36N03JSiZHsku3CKkg6RiKzhGG0euJV1Hrf2 + DMaWrv9u1ZsnyppLlNjZH1/QwDAWTZa5WGEUZqe4Rh5G5FouYjiPCYf7+Bi4K5yEi9Ph + YTgndx/VSF9hB/5OrzXYN68DCKx11n5lBpPWn9K2WwtLwvG7gJu7aBJ9EwNiXLI9/53p + kcBUWiwqQda2SyWCGgxSbogiywT/ImnvID1WkxfjxJK0yTa95/ZjlbXpz5Y5ly5BJYqw + bZi6BPiLF8uNPjsd7Nnz/Nuue6R9MZaQrqbmZgJ2LIeNdNdErfcdTM7CK+lwIrl1ftB4 + TM6g== +Received: by 10.152.110.46 with SMTP id hx14mr11395972lab.21.1346597330655; + Sun, 02 Sep 2012 07:48:50 -0700 (PDT) +Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi. + [80.223.81.27]) + by mx.google.com with ESMTPS id sy1sm10706287lab.13.2012.09.02.07.48.48 + (version=SSLv3 cipher=OTHER); Sun, 02 Sep 2012 07:48:49 -0700 (PDT) +From: Jani Nikula +To: notmuch@notmuchmail.org +Subject: [PATCH v2 3/5] test: fix hook-counter to accept the new no-display + param +Date: Sun, 2 Sep 2012 17:48:35 +0300 +Message-Id: + <93a480b6dafc48d09b1cfa1a8858cc229025fac9.1346596156.git.jani@nikula.org> +X-Mailer: git-send-email 1.7.9.5 +In-Reply-To: +References: +In-Reply-To: +References: +X-Gm-Message-State: + ALoCoQktEvPoFQCtEUeNzwydL1McDe91bWxEpoe8i72HdzqLAkiLrOwMvPr23BSE3TGmgOqAU7/n +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sun, 02 Sep 2012 14:49:02 -0000 + +notmuch-hello-refresh-hook is now called with no-display param. Accept +(and ignore) it in hook-counter. +--- + test/test-lib.el | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/test-lib.el b/test/test-lib.el +index fa3380c..864780c 100644 +--- a/test/test-lib.el ++++ b/test/test-lib.el +@@ -84,7 +84,7 @@ running, quit if it terminated." + (kill-emacs) + (run-at-time "1 min" nil 'orphan-watchdog pid))) + +-(defun hook-counter (hook) ++(defun hook-counter (hook &rest no-display) + "Count how many times a hook is called. Increments + `hook'-counter variable value if it is bound, otherwise does + nothing." +-- +1.7.9.5 + -- 2.26.2