summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFreddy Vulto <fvulto@gmail.com>2010-11-05 21:28:48 +0100
committerFreddy Vulto <fvulto@gmail.com>2010-11-05 21:28:48 +0100
commitde51dd3a89016453f765820b93af73bd80ad78cc (patch)
tree0e400569d5f1dc756717fca7817e8828b6c5b8e2 /test
parent0367d0bf57fb058b6f7fdc7bc9902de7bf5bbd26 (diff)
downloadbash-completion-de51dd3a89016453f765820b93af73bd80ad78cc.tar.gz
(testsuite) Prepend relative files with $::srcdir
in an attempt to be able to run the tests successfully from within autotools' `make distcheck'.
Diffstat (limited to 'test')
-rw-r--r--test/lib/completion.exp2
-rw-r--r--test/lib/library.exp4
-rw-r--r--test/lib/unit.exp2
3 files changed, 4 insertions, 4 deletions
diff --git a/test/lib/completion.exp b/test/lib/completion.exp
index b7563af6..88e92d50 100644
--- a/test/lib/completion.exp
+++ b/test/lib/completion.exp
@@ -1,4 +1,4 @@
-source ${srcdir}/lib/library.exp
+source $::srcdir/lib/library.exp
proc completion_exit {} {
diff --git a/test/lib/library.exp b/test/lib/library.exp
index bc5de50b..c69aa2bb 100644
--- a/test/lib/library.exp
+++ b/test/lib/library.exp
@@ -858,8 +858,8 @@ proc start_bash {} {
set TESTDIR [pwd]
# If `--tool_exec' option not specified, use "bash"
if {! [info exists TOOL_EXECUTABLE]} {set TOOL_EXECUTABLE bash}
- exp_spawn $TOOL_EXECUTABLE --rcfile config/bashrc
- assert_bash_exec {} "$TOOL_EXECUTABLE --rcfile config/bashrc"
+ exp_spawn $TOOL_EXECUTABLE --rcfile $::srcdir/config/bashrc
+ assert_bash_exec {} "$TOOL_EXECUTABLE --rcfile $::srcdir/config/bashrc"
# Bash < 3.2.41 has a bug where 'history' disappears from SHELLOPTS
# whenever a shopt setting is sourced or eval'ed. Disabling 'history'
# makes it not show in tests "Environment should not be modified"
diff --git a/test/lib/unit.exp b/test/lib/unit.exp
index 935997b6..e113e1b5 100644
--- a/test/lib/unit.exp
+++ b/test/lib/unit.exp
@@ -1,4 +1,4 @@
-source lib/library.exp
+source $::srcdir/lib/library.exp
proc unit_exit {} {