1 Return-Path: <bremner@unb.ca>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id B3110431FD0
\r
6 for <notmuch@notmuchmail.org>; Thu, 23 Jun 2011 03:24:11 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id fK1QBklVwZRU for <notmuch@notmuchmail.org>;
\r
16 Thu, 23 Jun 2011 03:24:11 -0700 (PDT)
\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])
\r
18 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id D5786431FB6
\r
21 for <notmuch@notmuchmail.org>; Thu, 23 Jun 2011 03:24:10 -0700 (PDT)
\r
22 Received: from zancas.localnet
\r
23 (fctnnbsc30w-142167176081.pppoe-dynamic.High-Speed.nb.bellaliant.net
\r
24 [142.167.176.81]) (authenticated bits=0)
\r
25 by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id p5NAO8Zr031586
\r
26 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);
\r
27 Thu, 23 Jun 2011 07:24:09 -0300
\r
28 Received: from bremner by zancas.localnet with local (Exim 4.76)
\r
29 (envelope-from <bremner@unb.ca>)
\r
30 id 1QZh4y-0000lT-96; Thu, 23 Jun 2011 07:24:08 -0300
\r
31 From: David Bremner <david@tethera.net>
\r
32 To: notmuch@notmuchmail.org
\r
33 Subject: Re: [PATCH] tests: add a test for symbol hiding side effects
\r
34 In-Reply-To: <1308744156-18123-1-git-send-email-david@tethera.net>
\r
35 References: <87tybir2s9.fsf@zancas.localnet>
\r
36 <1308744156-18123-1-git-send-email-david@tethera.net>
\r
37 User-Agent: Notmuch/0.6~238 (http://notmuchmail.org) Emacs/23.3.1
\r
38 (x86_64-pc-linux-gnu)
\r
39 Date: Thu, 23 Jun 2011 07:24:08 -0300
\r
40 Message-ID: <878vssrgl3.fsf@zancas.localnet>
\r
42 Content-Type: text/plain; charset=us-ascii
\r
43 X-BeenThere: notmuch@notmuchmail.org
\r
44 X-Mailman-Version: 2.1.13
\r
46 List-Id: "Use and development of the notmuch mail system."
\r
47 <notmuch.notmuchmail.org>
\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
51 List-Post: <mailto:notmuch@notmuchmail.org>
\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
55 X-List-Received-Date: Thu, 23 Jun 2011 10:24:11 -0000
\r
57 On Wed, 22 Jun 2011 09:02:36 -0300, david@tethera.net wrote:
\r
58 > From: David Bremner <bremner@debian.org>
\r
60 > The worry here is that a binary linking with libnotmuch might lose
\r
61 > access to Xapian::Error symbols because libnotmuch hides them.
\r
63 After some helpful feedback from jrollins and amdragon on IRC, I have
\r
64 pushed an updated version of this. The guts of the updated test are as
\r
68 result=$(LD_LIBRARY_PATH=../../lib ./symbol-test 2>&1)
\r
71 output="A Xapian exception occurred opening database: Couldn't stat 'fakedb/.notmuch/xapian'
\r
72 caught No chert database found at path \`./nonexistant'"
\r
74 g++ -o symbol-test -I../../lib ../symbol-test.cc -L../../lib -lnotmuch -lxapian
\r
75 mkdir -p fakedb/.notmuch
\r
76 test_expect_success 'running test' run_test
\r
77 test_begin_subtest 'checking output'
\r
78 test_expect_equal "$result" "$output"
\r