summaryrefslogtreecommitdiff
path: root/test/lib/completions/pinfo.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/completions/pinfo.exp')
-rw-r--r--test/lib/completions/pinfo.exp7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/lib/completions/pinfo.exp b/test/lib/completions/pinfo.exp
index 3af44044..de241ff5 100644
--- a/test/lib/completions/pinfo.exp
+++ b/test/lib/completions/pinfo.exp
@@ -1,19 +1,22 @@
proc setup {} {
+ assert_bash_exec {OLDINFOPATH=$INFOPATH; INFOPATH=$INFOPATH:$TESTDIR/fixtures/info:}
save_env
}
proc teardown {} {
assert_env_unmodified
+ assert_bash_exec {INFOPATH="$OLDINFOPATH"; unset -v OLDINFOPATH}
}
setup
-assert_complete_any "pinfo "
-
+assert_complete_any "pinfo bash"
+sync_after_int
+assert_complete_any "pinfo -"
sync_after_int