From 59e7d21e09b0c68228e1b0239df00e22c309fe89 Mon Sep 17 00:00:00 2001 From: Freddy Vulto Date: Mon, 26 Apr 2010 19:53:13 +0200 Subject: [PATCH] (testsuite) Fix screen accessing $::BASH_VERSINFO --- test/lib/completions/screen.exp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lib/completions/screen.exp b/test/lib/completions/screen.exp index 62c57362..985862c1 100644 --- a/test/lib/completions/screen.exp +++ b/test/lib/completions/screen.exp @@ -31,12 +31,12 @@ expect { # _filedir only works if `-o filenames' is in effect, which isn't the # case for `screen' on bash-3, so an expected failure (xfail) -re "\r\nbar\\s+bar bar.d\\s+foo\\s+foo.d" { - if {[lindex $BASH_VERSINFO 0] < 4} {xfail "$test"} {fail "$test"} + if {[lindex $::BASH_VERSINFO 0] < 4} {xfail "$test"} {fail "$test"} } -re "\r\nbar\\s+bar\\\\ bar.d/\\s+foo\\s+foo.d/" { # On bash-3, the space in `bar bar.d' is escaped with a backslash # as a side-effect of emulating `-o filenames'. - if {[lindex $BASH_VERSINFO 0] <= 3} {pass "$test"} {fail "$test"} + if {[lindex $::BASH_VERSINFO 0] <= 3} {pass "$test"} {fail "$test"} } -re $prompt { unresolved "$test at prompt" } default { unresolved "$test" }