From b0613b2a2a015edc138376be792e9279521a3322 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Fri, 3 Oct 2014 22:22:09 +0200 Subject: [PATCH] [PATCH 1/2] test: check for debug symbols in notmuch --- 7a/de4d92fccdef38729de5c2da44e6869e1228f5 | 73 +++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 7a/de4d92fccdef38729de5c2da44e6869e1228f5 diff --git a/7a/de4d92fccdef38729de5c2da44e6869e1228f5 b/7a/de4d92fccdef38729de5c2da44e6869e1228f5 new file mode 100644 index 000000000..973babe2d --- /dev/null +++ b/7a/de4d92fccdef38729de5c2da44e6869e1228f5 @@ -0,0 +1,73 @@ +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 10C42431FBC + for ; Fri, 3 Oct 2014 13:22:35 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + 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 MVOkzRdg37GB for ; + Fri, 3 Oct 2014 13:22:31 -0700 (PDT) +Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id AD91F431FB6 + for ; Fri, 3 Oct 2014 13:22:31 -0700 (PDT) +Received: from remotemail by yantan.tethera.net with local (Exim 4.80) + (envelope-from ) + id 1Xa9My-00008r-RQ; Fri, 03 Oct 2014 17:22:28 -0300 +Received: (nullmailer pid 25932 invoked by uid 1000); Fri, 03 Oct 2014 + 20:22:17 -0000 +From: David Bremner +To: notmuch@notmuchmail.org +Subject: [PATCH 1/2] test: check for debug symbols in notmuch +Date: Fri, 3 Oct 2014 22:22:09 +0200 +Message-Id: <1412367730-25890-1-git-send-email-david@tethera.net> +X-Mailer: git-send-email 2.1.0 +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, 03 Oct 2014 20:22:35 -0000 + +In the future, tests may rely on debug symbols being present in +notmuch, so we plan to switch the default flags. + +The main purpose of this test is to help explain the perhaps +mysterious failures of other tests which rely on symbols being +present. +--- + test/T000-basic.sh | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/test/T000-basic.sh b/test/T000-basic.sh +index ebbb6d2..bf08f3e 100755 +--- a/test/T000-basic.sh ++++ b/test/T000-basic.sh +@@ -91,4 +91,9 @@ test_expect_equal \ + "$(dirname ${TEST_DIRECTORY})" \ + "$(echo $PATH|cut -f1 -d: | sed -e 's,/test/valgrind/bin$,,')" + ++test_begin_subtest 'notmuch is compiled with debugging symbols' ++test_subtest_known_broken ++readelf --sections $(which notmuch) | grep \.debug ++test_expect_equal 0 $? ++ + test_done +-- +2.1.0 + -- 2.26.2