From dc8af65161fecc37d2d2ab15c02d8f529d27c3b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 24 Jan 2010 23:58:46 +0200 Subject: (testsuite) Use kern instead of fs to test sysctl completion. FreeBSD does not have fs.* (has vfs.* instead). Linux has kernel.*, FreeBSD kern.*. --- test/lib/completions/sysctl.exp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/lib') 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 -- cgit v1.2.1