aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar David Bremner <david@tethera.net>2014-04-13 09:42:49 -0300
committerGravatar David Bremner <david@tethera.net>2014-04-18 07:53:57 +0900
commit320f86c30a51017c2afd1b5ac02aaf2cb0affcd7 (patch)
tree39a75f9b36fa6142db496296f5f02c5ceefe6d6c /test
parentdd24fdd33a3c06b2c2ad6bcb8e7d18bc8442f51f (diff)
test: use test_expect_equal for PATH test, update message
- The old test was quite impossible to debug; the new one shows the difference between the two directories, if any. - "repository" doesn't make sense for out of tree builds. Or tarball builds, for that matter.
Diffstat (limited to 'test')
-rwxr-xr-xtest/T000-basic.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/T000-basic.sh b/test/T000-basic.sh
index 9c94b62c..ebbb6d2e 100755
--- a/test/T000-basic.sh
+++ b/test/T000-basic.sh
@@ -86,8 +86,9 @@ test_expect_success \
'NOTMUCH_CONFIG is set and points to an existing file' \
'test -f "${NOTMUCH_CONFIG}"'
-test_expect_success \
- 'PATH is set to this repository' \
- 'test "`echo $PATH|cut -f1 -d: | sed -e 's,/test/valgrind/bin$,,'`" = "`dirname ${TEST_DIRECTORY}`"'
+test_begin_subtest 'PATH is set to build directory'
+test_expect_equal \
+ "$(dirname ${TEST_DIRECTORY})" \
+ "$(echo $PATH|cut -f1 -d: | sed -e 's,/test/valgrind/bin$,,')"
test_done