From 9f107370c494dd565737335f8bef0cfc67bc46a2 Mon Sep 17 00:00:00 2001 From: Freddy Vulto Date: Thu, 11 Feb 2010 23:09:46 +0100 Subject: (testsuite) Added `sleep .1' after sending QUIT/INT to bash See also: http://lists.alioth.debian.org/pipermail/bash-completion-devel/2010-February/002566.html --- test/lib/library.exp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/lib/library.exp b/test/lib/library.exp index 00dd8469..8de12d9f 100644 --- a/test/lib/library.exp +++ b/test/lib/library.exp @@ -836,6 +836,10 @@ proc sync_after_int {{prompt /@}} { set test "Sync after INT" sleep .1 send \031\003; # QUIT/INT + # Wait to allow bash to become ready + # See also: http://lists.alioth.debian.org/pipermail/bash-completion-devel/ + # 2010-February/002566.html + sleep .1 # NOTE: Regexp `.*' causes `expect' to discard previous unknown output. # This is necessary if a completion doesn't match expectations. # For instance with `filetype_xspec' completion (e.g. `kdvi') if -- cgit v1.2.1