summaryrefslogtreecommitdiff
path: root/test/lib/completions/man.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/completions/man.exp')
-rw-r--r--test/lib/completions/man.exp21
1 files changed, 17 insertions, 4 deletions
diff --git a/test/lib/completions/man.exp b/test/lib/completions/man.exp
index 62c14c86..c7358c62 100644
--- a/test/lib/completions/man.exp
+++ b/test/lib/completions/man.exp
@@ -1,17 +1,30 @@
proc setup {} {
+ assert_bash_exec "export MANPATH=$::srcdirabs/fixtures/man"
save_env
-}; # setup()
+}
proc teardown {} {
- assert_env_unmodified
-}; # teardown()
+ assert_env_unmodified {/OLDPWD/d}
+}
setup
-assert_complete_any "man man"
+assert_complete "bar" "man b"
+
+
+sync_after_int
+
+
+assert_complete_dir oo.1 "man man1/f" $::srcdir/fixtures/man
+
+
+sync_after_int
+
+
+assert_complete "Bash::Completion" "man Bash::C"
sync_after_int