[Bash-completion-commits] [SCM] bash-completion branch, master, updated. dc8af65161fecc37d2d2ab15c02d8f529d27c3b5

Ville Skyttä ville.skytta at iki.fi
Sun Jan 24 22:00:20 UTC 2010


The following commit has been merged in the master branch:
commit dc8af65161fecc37d2d2ab15c02d8f529d27c3b5
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Jan 24 23:58:46 2010 +0200

    (testsuite) Use kern instead of fs to test sysctl completion.
    
    FreeBSD does not have fs.* (has vfs.* instead).  Linux has kernel.*,
    FreeBSD kern.*.

diff --git a/test/lib/completions/sysctl.exp b/test/lib/completions/sysctl.exp
index cd7e7e3..e1866f5 100644
--- a/test/lib/completions/sysctl.exp
+++ b/test/lib/completions/sysctl.exp
@@ -11,7 +11,9 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "sysctl fs"
+if {[assert_exec {sysctl -N -a 2>/dev/null | grep ^kern | sort -u} values]} {
+    assert_complete $values "sysctl kern"
+}; # if
 
 
 sync_after_int

-- 
bash-completion



More information about the Bash-completion-commits mailing list