summaryrefslogtreecommitdiff
path: root/test/lib/unit.exp
diff options
context:
space:
mode:
authorFreddy Vulto <fvulto@gmail.com>2009-12-02 21:12:40 +0100
committerFreddy Vulto <fvulto@gmail.com>2009-12-02 21:12:40 +0100
commitc920661b5e4e6a7e8536cbe497abf13d9bd1bbfd (patch)
treea433a424dfd83f7d01d903028e0c681ea2fd1f90 /test/lib/unit.exp
parenta07b5c5ffd9fda19ed8d990776d9b1dac6a5bbdc (diff)
downloadbash-completion-c920661b5e4e6a7e8536cbe497abf13d9bd1bbfd.tar.gz
(testsuite) Fix ssh test with colon completions
Function `assert_complete()' is becoming hairy but let's wait untill other completions with other special characters come along before refactoring.
Diffstat (limited to 'test/lib/unit.exp')
-rw-r--r--test/lib/unit.exp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lib/unit.exp b/test/lib/unit.exp
index 14e64cca..36096c07 100644
--- a/test/lib/unit.exp
+++ b/test/lib/unit.exp
@@ -8,7 +8,7 @@ proc unit_exit {} {
proc unit_start {} {
- global bash_versinfo_0 TESTDIR TOOL_EXECUTABLE spawn_id
+ global bash_versinfo_0 COMP_WORDBREAKS TESTDIR TOOL_EXECUTABLE spawn_id
set test "unit_start"
set TESTDIR [pwd]
@@ -29,6 +29,7 @@ proc unit_start {} {
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
+ assert_bash_exec {printf "%s" "$COMP_WORDBREAKS"} {} /@ COMP_WORDBREAKS
}; # unit_start()