[PATCH 1/4] test: add 'GDB' prereq to 'atomicity' tests

Subject: [PATCH 1/4] test: add 'GDB' prereq to 'atomicity' tests

Date: Fri, 13 May 2011 10:17:13 +0200

To: Notmuch Mail

Cc: Austin Clements

From: Pieter Praet


Signed-off-by: Pieter Praet <pieter@praet.org>
---
 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


Thread: