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 6291D421189 for ; Tue, 17 Jan 2012 06:44:23 -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 l5eOAMFMZNyQ for ; Tue, 17 Jan 2012 06:44:22 -0800 (PST) Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 9DE48421181 for ; Tue, 17 Jan 2012 06:44:22 -0800 (PST) Received: by bkty12 with SMTP id y12so604689bkt.26 for ; Tue, 17 Jan 2012 06:44:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type; bh=wjFH6EeHYOaNAhn875vEz+fTzoRReA/25c8lYfTVns0=; b=plx0/JwoiNPYlzipDChd71Ev1QiP4vsoRJUMrPBpVms9tBZUHccQLz2N4EaPOAPqqe AVouHPIHV07yMlN1xrlVbCrFxwLtoGZzgQEIeJo1ASQ9uia5D7lLtZ2ZBEIdy/zxNyl9 /86CjcvvoNVrfvaUDkcwjgjJomArq2re4bNvI= Received: by 10.204.225.71 with SMTP id ir7mr6951290bkb.124.1326811461355; Tue, 17 Jan 2012 06:44:21 -0800 (PST) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id ek9sm16880354bkb.10.2012.01.17.06.44.18 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Jan 2012 06:44:19 -0800 (PST) From: Dmitry Kurochkin To: David Edmondson , notmuch@notmuchmail.org Subject: Re: [PATCH 2/3] test: Add `test_emacs_expect_t'. In-Reply-To: References: <87pqei327k.fsf@gmail.com> <1326809224-22673-1-git-send-email-dme@dme.org> <1326809224-22673-2-git-send-email-dme@dme.org> <877h0qxv4u.fsf@gmail.com> User-Agent: Notmuch/0.11+73~g8a5402e (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Tue, 17 Jan 2012 18:43:22 +0400 Message-ID: <8739bexud1.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Tue, 17 Jan 2012 14:44:23 -0000 On Tue, 17 Jan 2012 14:35:07 +0000, David Edmondson wrote: > On Tue, 17 Jan 2012 18:26:41 +0400, Dmitry Kurochkin wrote: > > Sorry, I still do not understand why we can not implement > > test_emacs_expect_t() like: > > > > result=${test_emacs $@} > > test_expect_equal $result t > > > > Can you please explain? > > In the failure case test_expect_equal does: > > test_failure_ "$test_subtest_name" "$(diff -u $testname.expected $testname.output)" > > that diff output is not useful here, because the test harness doesn't > have any expected output other than `t' with which to diff the actual > output. > > The emacs-address-cleaning test shows how we will provide expected > vs. actual output directly from within emacs, making it easier for the > developer to figure out what went wrong. Thanks for the explanation. Regards, Dmitry