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 CBC20429E2F for ; Sat, 17 Dec 2011 15:40:07 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, 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 9bZOPKxhL4m3 for ; Sat, 17 Dec 2011 15:40:06 -0800 (PST) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 5C35F429E34 for ; Sat, 17 Dec 2011 15:40:05 -0800 (PST) Received: by wibhq2 with SMTP id hq2so801993wib.26 for ; Sat, 17 Dec 2011 15:40:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:x-mailer:in-reply-to:references; bh=IsXUuhnc9Cuy7Rw1VvhwAufGrAETJBEQ0i4/5Ol9j5E=; b=P+fN6qDFPQGo+jukt7NRbUNMwbxUYZ2EXctWln1AyTV5g/y0oIB2ZKRVqMQAo1H82C UlCzJs8ZuxdfedENcJEwY+EDzNZ9f+/fUKPpb4yfNgEURKrsvdg42nd4ddenyqcOy6Lp uuA/o25wj3/7plSn257AUZPqwaV8JGfPwD8d0= Received: by 10.180.88.66 with SMTP id be2mr19034845wib.54.1324165203954; Sat, 17 Dec 2011 15:40:03 -0800 (PST) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id gd6sm20010849wbb.1.2011.12.17.15.40.02 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 17 Dec 2011 15:40:03 -0800 (PST) From: Dmitry Kurochkin To: notmuch@notmuchmail.org Subject: [PATCH v3 3/4] test: add broken test for `notmuch-hello-mode-hook' called during update Date: Sun, 18 Dec 2011 03:39:13 +0400 Message-Id: <1324165154-5728-4-git-send-email-dmitry.kurochkin@gmail.com> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1324165154-5728-1-git-send-email-dmitry.kurochkin@gmail.com> References: <1324095619-10870-1-git-send-email-dmitry.kurochkin@gmail.com> <1324165154-5728-1-git-send-email-dmitry.kurochkin@gmail.com> 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: Sat, 17 Dec 2011 23:40:08 -0000 Test that `notmuch-hello-mode-hook' is not called during `notmuch-hello' buffer updates. The test is currently broken. --- test/emacs | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/test/emacs b/test/emacs index a864ffa..b4c2444 100755 --- a/test/emacs +++ b/test/emacs @@ -485,4 +485,15 @@ counter=$(test_emacs \ ) test_expect_equal "$counter" 1 +test_begin_subtest "notmuch-hello-mode hook is not called on updates" +test_subtest_known_broken +counter=$(test_emacs \ + '(let ((notmuch-hello-mode-hook-counter 0)) + (kill-buffer "*notmuch-hello*") + (notmuch-hello) + (notmuch-hello-update) + notmuch-hello-mode-hook-counter)' +) +test_expect_equal "$counter" 1 + test_done -- 1.7.7.3