[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 38e836f82b8e24bc2c4a4d8d5bfad8ebfbc0d24b
Ville Skyttä
ville.skytta at iki.fi
Mon Apr 26 20:28:29 UTC 2010
The following commit has been merged in the master branch:
commit 38e836f82b8e24bc2c4a4d8d5bfad8ebfbc0d24b
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Mon Apr 26 22:59:15 2010 +0300
Fix kldunload test failure when no modules are loaded.
diff --git a/test/lib/completions/kldunload.exp b/test/lib/completions/kldunload.exp
index 4a20aa6..192159a 100644
--- a/test/lib/completions/kldunload.exp
+++ b/test/lib/completions/kldunload.exp
@@ -11,7 +11,11 @@ proc teardown {} {
setup
-assert_complete_any "kldunload "
+if {[catch {eval exec {kldstat | grep "\.ko$"}}] == 0} {
+ assert_complete_any "kldunload "
+} else {
+ assert_no_complete "kldunload "
+}
sync_after_int
--
bash-completion
More information about the Bash-completion-commits
mailing list