(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:
parent
0367d0bf57
commit
de51dd3a89
@ -1,4 +1,4 @@
|
|||||||
source ${srcdir}/lib/library.exp
|
source $::srcdir/lib/library.exp
|
||||||
|
|
||||||
|
|
||||||
proc completion_exit {} {
|
proc completion_exit {} {
|
||||||
|
@ -858,8 +858,8 @@ proc start_bash {} {
|
|||||||
set TESTDIR [pwd]
|
set TESTDIR [pwd]
|
||||||
# If `--tool_exec' option not specified, use "bash"
|
# If `--tool_exec' option not specified, use "bash"
|
||||||
if {! [info exists TOOL_EXECUTABLE]} {set TOOL_EXECUTABLE bash}
|
if {! [info exists TOOL_EXECUTABLE]} {set TOOL_EXECUTABLE bash}
|
||||||
exp_spawn $TOOL_EXECUTABLE --rcfile config/bashrc
|
exp_spawn $TOOL_EXECUTABLE --rcfile $::srcdir/config/bashrc
|
||||||
assert_bash_exec {} "$TOOL_EXECUTABLE --rcfile config/bashrc"
|
assert_bash_exec {} "$TOOL_EXECUTABLE --rcfile $::srcdir/config/bashrc"
|
||||||
# Bash < 3.2.41 has a bug where 'history' disappears from SHELLOPTS
|
# Bash < 3.2.41 has a bug where 'history' disappears from SHELLOPTS
|
||||||
# whenever a shopt setting is sourced or eval'ed. Disabling 'history'
|
# whenever a shopt setting is sourced or eval'ed. Disabling 'history'
|
||||||
# makes it not show in tests "Environment should not be modified"
|
# makes it not show in tests "Environment should not be modified"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
source lib/library.exp
|
source $::srcdir/lib/library.exp
|
||||||
|
|
||||||
|
|
||||||
proc unit_exit {} {
|
proc unit_exit {} {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user