[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 325b1c2fea5ccb69bb8ca4649d4b50101f78f568
Freddy Vulto
fvulto at gmail.com
Wed Nov 3 21:35:29 UTC 2010
The following commit has been merged in the master branch:
commit 325b1c2fea5ccb69bb8ca4649d4b50101f78f568
Author: Freddy Vulto <fvulto at gmail.com>
Date: Wed Nov 3 22:34:35 2010 +0100
(testsuite) Added expected failure for perldoc options completion
perldoc options don't complete anymore
diff --git a/test/lib/completions/perldoc.exp b/test/lib/completions/perldoc.exp
index b084dda..7585897 100644
--- a/test/lib/completions/perldoc.exp
+++ b/test/lib/completions/perldoc.exp
@@ -11,6 +11,25 @@ proc teardown {} {
setup
+set test "perldoc should complete options"
+set cmd "perldoc -"
+send "$cmd\t"
+expect -ex "$cmd"
+# We can't anchor on $, simulate typing a magical string instead.
+set endguard "Magic End Guard"
+send "$endguard"
+expect {
+ # NOTE: Expected failure: After switching to pure perl perldoc completion,
+ # the completion of options has disappeared. See commit 07b7ddd1d
+ # and Alioth #312800
+ -re "^$endguard$" { xfail "$test" }
+ -re "-h.*$endguard$" { pass "$test" }
+}
+
+
+sync_after_int
+
+
set test "perldoc should complete word containing colons"
set cmd "perldoc File::"
send "$cmd\t"
--
bash-completion
More information about the Bash-completion-commits
mailing list