From 1b200eca213963e2e85013c7a80e92fda910034e Mon Sep 17 00:00:00 2001 From: Crestez Dan Leonard Date: Thu, 18 Mar 2010 06:16:28 +0200 Subject: (testsuite) Don't and start of prompt pattern in sync_after_int. --- test/lib/library.exp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1