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 681EC429E21 for ; Fri, 13 May 2011 01:17:53 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 7CG5XW9+COie for ; Fri, 13 May 2011 01:17:53 -0700 (PDT) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id D0EB0431FD0 for ; Fri, 13 May 2011 01:17:52 -0700 (PDT) Received: by mail-wy0-f181.google.com with SMTP id 11so1911216wyi.26 for ; Fri, 13 May 2011 01:17:52 -0700 (PDT) Received: by 10.216.205.26 with SMTP id i26mr1128052weo.58.1305274672501; Fri, 13 May 2011 01:17:52 -0700 (PDT) Received: from localhost (54.209-242-81.adsl-dyn.isp.belgacom.be [81.242.209.54]) by mx.google.com with ESMTPS id f52sm1004097wes.11.2011.05.13.01.17.50 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 May 2011 01:17:51 -0700 (PDT) From: Pieter Praet To: Notmuch Mail Subject: [PATCH 1/4] test: add 'GDB' prereq to 'atomicity' tests Date: Fri, 13 May 2011 10:17:13 +0200 Message-Id: <1305274636-19975-2-git-send-email-pieter@praet.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1305274636-19975-1-git-send-email-pieter@praet.org> References: <1305274636-19975-1-git-send-email-pieter@praet.org> Cc: Austin Clements 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: Fri, 13 May 2011 08:17:53 -0000 Signed-off-by: Pieter Praet --- test/atomicity | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/test/atomicity b/test/atomicity index cd58c4c..78280b2 100755 --- a/test/atomicity +++ b/test/atomicity @@ -7,6 +7,12 @@ test_description='atomicity' # final database contents should be the same regardless of when (or # if) it is killed and restarted. +# GDB is a prereq. +if test_expect_success "prereq: GDB is present" "which gdb"; then + test_set_prereq GDB +fi + + # Create a maildir structure to also stress flag synchronization mkdir $MAIL_DIR/cur mkdir $MAIL_DIR/new @@ -89,8 +95,8 @@ for ((i = 0; i < $outcount; i++)); do i=$(expr $end - 1) fi done -test_expect_equal "$(cat searchall)" "$(cat expectall)" +test_expect_equal GDB "$(cat searchall)" "$(cat expectall)" -test_expect_success "detected $outcount>10 abort points" "test $outcount -gt 10" +test_expect_success GDB "detected $outcount>10 abort points" "test $outcount -gt 10" test_done -- 1.7.4.1