diff options
author | Mark Anderson <ma.skies@gmail.com> | 2011-06-28 16:11:32 -0600 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2011-06-28 16:01:56 -0700 |
commit | eb4cf465a5c179c711c15649fc90c7377850cb77 (patch) | |
tree | ccc18f56b2bab21f6f6eda0af9282aa854e2d2db /test/symbol-hiding | |
parent | 273d896097830235eca5f1bc87ac03e381280f1c (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-x | test/symbol-hiding | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/symbol-hiding b/test/symbol-hiding index bb55524..d0b31ae 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' |