diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2010-01-24 23:58:46 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2010-01-24 23:58:46 +0200 |
commit | dc8af65161fecc37d2d2ab15c02d8f529d27c3b5 (patch) | |
tree | 164e5342562958574814a6c439080503357e6807 | |
parent | c0d57b0bea07e11ba70ff3abedade27120c332c8 (diff) | |
download | bash-completion-dc8af65161fecc37d2d2ab15c02d8f529d27c3b5.tar.gz |
(testsuite) Use kern instead of fs to test sysctl completion.
FreeBSD does not have fs.* (has vfs.* instead). Linux has kernel.*,
FreeBSD kern.*.
-rw-r--r-- | test/lib/completions/sysctl.exp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lib/completions/sysctl.exp b/test/lib/completions/sysctl.exp index cd7e7e3d..e1866f55 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 |