summaryrefslogtreecommitdiff
path: root/test/lib/completions/kldunload.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/completions/kldunload.exp')
-rw-r--r--test/lib/completions/kldunload.exp24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/lib/completions/kldunload.exp b/test/lib/completions/kldunload.exp
new file mode 100644
index 00000000..192159a5
--- /dev/null
+++ b/test/lib/completions/kldunload.exp
@@ -0,0 +1,24 @@
+proc setup {} {
+ save_env
+}; # setup()
+
+
+proc teardown {} {
+ assert_env_unmodified
+}; # teardown()
+
+
+setup
+
+
+if {[catch {eval exec {kldstat | grep "\.ko$"}}] == 0} {
+ assert_complete_any "kldunload "
+} else {
+ assert_no_complete "kldunload "
+}
+
+
+sync_after_int
+
+
+teardown