(test suite) Added global var `bash_versinfo_0'
This variable was introduced by unit/_get_cword.exp but is now upgraded to a global var.
This commit is contained in:
parent
d2c6b1ede0
commit
9eb0ee2851
@ -8,7 +8,7 @@ proc completion_exit {} {
|
|||||||
|
|
||||||
|
|
||||||
proc completion_start {} {
|
proc completion_start {} {
|
||||||
global TESTDIR TOOL_EXECUTABLE spawn_id
|
global bash_versinfo_0 TESTDIR TOOL_EXECUTABLE spawn_id
|
||||||
set test "completion_start"
|
set test "completion_start"
|
||||||
set TESTDIR [pwd]
|
set TESTDIR [pwd]
|
||||||
|
|
||||||
@ -21,6 +21,8 @@ proc completion_start {} {
|
|||||||
assert_bash_exec {BASH_COMPLETION_DIR=$(cd ..; pwd)/contrib}
|
assert_bash_exec {BASH_COMPLETION_DIR=$(cd ..; pwd)/contrib}
|
||||||
assert_bash_exec {BASH_COMPLETION=$(cd ..; pwd)/bash_completion}
|
assert_bash_exec {BASH_COMPLETION=$(cd ..; pwd)/bash_completion}
|
||||||
assert_bash_exec {source $BASH_COMPLETION}
|
assert_bash_exec {source $BASH_COMPLETION}
|
||||||
|
# Fill global var `bash_versinfo_0' with bash major version number
|
||||||
|
assert_bash_exec {printf "%s" "${BASH_VERSINFO[0]}"} "" /@ bash_versinfo_0
|
||||||
}; # completion_start()
|
}; # completion_start()
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ proc unit_exit {} {
|
|||||||
|
|
||||||
|
|
||||||
proc unit_start {} {
|
proc unit_start {} {
|
||||||
global TESTDIR TOOL_EXECUTABLE spawn_id
|
global bash_versinfo_0 TESTDIR TOOL_EXECUTABLE spawn_id
|
||||||
set test "unit_start"
|
set test "unit_start"
|
||||||
set TESTDIR [pwd]
|
set TESTDIR [pwd]
|
||||||
|
|
||||||
@ -27,6 +27,8 @@ proc unit_start {} {
|
|||||||
# -- FVu, Tue Sep 15 22:52:00 CEST 2009
|
# -- FVu, Tue Sep 15 22:52:00 CEST 2009
|
||||||
assert_bash_exec {is_bash_version_minimal 3 2 41 || set +o history}
|
assert_bash_exec {is_bash_version_minimal 3 2 41 || set +o history}
|
||||||
assert_bash_exec {source $BASH_COMPLETION}
|
assert_bash_exec {source $BASH_COMPLETION}
|
||||||
|
# Fill global var `bash_versinfo_0' with bash major version number
|
||||||
|
assert_bash_exec {printf "%s" "${BASH_VERSINFO[0]}"} "" /@ bash_versinfo_0
|
||||||
}; # unit_start()
|
}; # unit_start()
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,11 +19,6 @@ proc teardown {} {
|
|||||||
setup
|
setup
|
||||||
|
|
||||||
|
|
||||||
# Retrieve bash major version number
|
|
||||||
set bash_versinfo_0 {}
|
|
||||||
assert_bash_exec {printf "%s" "${BASH_VERSINFO[0]}"} "" /@ bash_versinfo_0
|
|
||||||
|
|
||||||
|
|
||||||
set test "_get_cword should run without errors"
|
set test "_get_cword should run without errors"
|
||||||
assert_bash_exec {_get_cword > /dev/null} $test
|
assert_bash_exec {_get_cword > /dev/null} $test
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user