[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-349-ga0834d3

Igor Murzov e-mail at date.by
Sun Jun 5 21:13:49 UTC 2011


The following commit has been merged in the master branch:
commit 75775fca52b257f15cc6c9d91f0a437ed3156c53
Author: Igor Murzov <e-mail at date.by>
Date:   Sun Jun 5 14:58:22 2011 +0400

    testsuite: Fix broken tests for finger and xhost

diff --git a/test/lib/completions/finger.exp b/test/lib/completions/finger.exp
index 026d07e..f11d11f 100644
--- a/test/lib/completions/finger.exp
+++ b/test/lib/completions/finger.exp
@@ -48,7 +48,7 @@ foreach h [get_known_hosts] {
         }
     }
 }
-assert_complete $hosts "finger test@$char" $test
+assert_complete $hosts "finger test@$char" $test -expect-cmd-minus "test@$char"
 
 
 sync_after_int
diff --git a/test/lib/completions/xhost.exp b/test/lib/completions/xhost.exp
index 8aa65b9..02aa4cb 100644
--- a/test/lib/completions/xhost.exp
+++ b/test/lib/completions/xhost.exp
@@ -30,7 +30,7 @@ foreach h [get_hosts] {
         lappend hosts $h
     }
 }
-assert_complete $hosts "xhost $char" $test
+assert_complete $hosts "xhost $char" $test -expect-cmd-minus "$char"
 
 
 sync_after_int
@@ -58,7 +58,7 @@ foreach h [get_hosts] {
         lappend hosts "+$h"
     }
 }
-assert_complete $hosts "xhost +$char" $test
+assert_complete $hosts "xhost +$char" $test -expect-cmd-minus "\+$char"
 
 
 sync_after_int
@@ -86,7 +86,7 @@ foreach h [get_hosts] {
         lappend hosts "-$h"
     }
 }
-assert_complete $hosts "xhost -$char" $test
+assert_complete $hosts "xhost -$char" $test -expect-cmd-minus "-$char"
 
 
 sync_after_int

-- 
bash-completion



More information about the Bash-completion-commits mailing list