aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2017-09-25 23:38:34 +0300
committerDavid Bremner <david@tethera.net>2017-10-20 20:49:26 -0300
commit0364a6d74bbca223e4368be3c1dce2b99f5917db (patch)
treea39077ee8ad18f375737db3d4b0a84218d033fbe /test
parentbc349ad3160a7bb0f6b9abf8098c561badc7d6e1 (diff)
test: use source and build paths in T360-symbol-hiding.sh
Make a distinction between source and build directories.
Diffstat (limited to 'test')
-rwxr-xr-xtest/T360-symbol-hiding.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/T360-symbol-hiding.sh b/test/T360-symbol-hiding.sh
index 68edc2d3..43921cb4 100755
--- a/test/T360-symbol-hiding.sh
+++ b/test/T360-symbol-hiding.sh
@@ -26,8 +26,8 @@ test_begin_subtest 'checking output'
test_expect_equal "$result" "$output"
test_begin_subtest 'comparing existing to exported symbols'
-nm -P $TEST_DIRECTORY/../lib/libnotmuch.so | awk '$2 == "T" && $1 ~ "^notmuch" {print $1}' | sort | uniq > ACTUAL
-sed -n 's/^\(notmuch_[a-zA-Z0-9_]*\)[[:blank:]]*(.*/\1/p' $TEST_DIRECTORY/../lib/notmuch.h | sort | uniq > EXPORTED
+nm -P $NOTMUCH_BUILDDIR/lib/libnotmuch.so | awk '$2 == "T" && $1 ~ "^notmuch" {print $1}' | sort | uniq > ACTUAL
+sed -n 's/^\(notmuch_[a-zA-Z0-9_]*\)[[:blank:]]*(.*/\1/p' $NOTMUCH_SRCDIR/lib/notmuch.h | sort | uniq > EXPORTED
test_expect_equal_file EXPORTED ACTUAL
test_done