aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/symbol-hiding
diff options
context:
space:
mode:
authorGravatar Mark Anderson <ma.skies@gmail.com>2011-06-28 16:11:32 -0600
committerGravatar Carl Worth <cworth@cworth.org>2011-06-28 16:01:56 -0700
commiteb4cf465a5c179c711c15649fc90c7377850cb77 (patch)
treeccc18f56b2bab21f6f6eda0af9282aa854e2d2db /test/symbol-hiding
parent273d896097830235eca5f1bc87ac03e381280f1c (diff)
test:Improve test behaviors when --root is used
Change add_email_corpus, emacs_deliver_message and tests to use $TEST_DIRECTORY instead of '..'. This improves the behavior of the usage of --root=<dir>, as the assumption of what '..' means will usually be incorrect. Document -root option in README and update valgrind to work with -root.
Diffstat (limited to 'test/symbol-hiding')
-rwxr-xr-xtest/symbol-hiding4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/symbol-hiding b/test/symbol-hiding
index bb555245..d0b31aec 100755
--- a/test/symbol-hiding
+++ b/test/symbol-hiding
@@ -12,13 +12,13 @@ test_description='exception symbol hiding'
. ./test-lib.sh
run_test(){
- result=$(LD_LIBRARY_PATH=../../lib ./symbol-test 2>&1)
+ result=$(LD_LIBRARY_PATH=$TEST_DIRECTORY/../lib ./symbol-test 2>&1)
}
output="A Xapian exception occurred opening database: Couldn't stat 'fakedb/.notmuch/xapian'
caught No chert database found at path \`./nonexistant'"
-g++ -o symbol-test -I../../lib ../symbol-test.cc -L../../lib -lnotmuch -lxapian
+g++ -o symbol-test -I$TEST_DIRECTORY/../lib $TEST_DIRECTORY/symbol-test.cc -L$TEST_DIRECTORY/../lib -lnotmuch -lxapian
mkdir -p fakedb/.notmuch
test_expect_success 'running test' run_test
test_begin_subtest 'checking output'