(testsuite) Test for expect-5.44 to prevent segfault

Modified test title
This commit is contained in:
Freddy Vulto 2010-10-31 07:53:15 +01:00
parent bf763033b7
commit 50dd6c7ac6

View File

@ -248,13 +248,16 @@ assert_complete_dir {ee.e1 foo/ gg.e1 ii.E1} "g " "fixtures/_filedir/ext" $test
sync_after_int
set test "completing f aé should return g when LC_CTYPE=C"
set test "completing f aé should return g"
# Execute this test only on bash >= 4 with LC_CTYPE matching *UTF-8*
# See also: http://www.mail-archive.com/bash-completion-devel\
# @lists.alioth.debian.org/msg02265.html
# Don't execute this test on expect-5.44 cause it will segfault
# See also: Alioth #312792
if {
[lindex $::BASH_VERSINFO 0] >= 4 &&
[string first "UTF-8" $::LC_CTYPE] != -1
[lindex $::BASH_VERSINFO 0] >= 4 &&
[string first "UTF-8" $::LC_CTYPE] != -1 &&
[string first 5.44 [exp_version]] != 0
} {
assert_complete_dir g "f aé/" "fixtures/_filedir"
} else {