(testsuite) Prepend relative files with $::srcdir

in an attempt to be able to run the tests successfully from within
autotools' `make distcheck'.
This commit is contained in:
Freddy Vulto 2010-11-05 21:28:48 +01:00
parent 0367d0bf57
commit de51dd3a89
3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
source ${srcdir}/lib/library.exp
source $::srcdir/lib/library.exp
proc completion_exit {} {

View File

@ -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"

View File

@ -1,4 +1,4 @@
source lib/library.exp
source $::srcdir/lib/library.exp
proc unit_exit {} {