diff options
author | Crestez Dan Leonard <cdleonard@gmail.com> | 2010-03-18 06:16:28 +0200 |
---|---|---|
committer | Crestez Dan Leonard <cdleonard@gmail.com> | 2010-03-18 06:16:28 +0200 |
commit | 1b200eca213963e2e85013c7a80e92fda910034e (patch) | |
tree | c6ec451d88370fcd5360b609b50d0e15f5d351ef | |
parent | 153f65a3ca261723f96b41006a48260c5f80db6c (diff) | |
download | bash-completion-expect-fixes.tar.gz |
(testsuite) Don't and start of prompt pattern in sync_after_int.expect-fixes
-rw-r--r-- | test/lib/library.exp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/lib/library.exp b/test/lib/library.exp index 1aebfa3e..a2b7c218 100644 --- a/test/lib/library.exp +++ b/test/lib/library.exp @@ -918,7 +918,11 @@ proc sync_after_int {{prompt /@}} { # inputrc starting from bash 4.1. This is not enough; we need to run tests # against bash-4.0 as well. # See http://www.mail-archive.com/bug-bash@gnu.org/msg07038.html - expect -re "^(\\^C)?\\r\\n$prompt$" + + # Don't anchor the start; even though it would be bizzare for + # something to show up. + # See http://lists.alioth.debian.org/pipermail/bash-completion-devel/2010-February/002625.html + expect -re ".*(\\^C)?\\r\\n$prompt$" } else { # Slow alternative is to sleep and hope we don't match the first of # two prompts |