summaryrefslogtreecommitdiff
path: root/test/lib/completions/info.exp
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.eti.br>2018-03-18 12:02:11 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.eti.br>2018-03-18 12:02:11 -0300
commit9cd22d1df8f0f5b554858471c86faa9f37b8fed4 (patch)
tree6399b936aecc388506ec32cfc10fdb06cfc1949f /test/lib/completions/info.exp
parent6d88f1055806932d9291f96847d2b691cccda2cd (diff)
downloadbash-completion-9cd22d1df8f0f5b554858471c86faa9f37b8fed4.tar.gz
New upstream version 2.8upstream/2.8
Diffstat (limited to 'test/lib/completions/info.exp')
-rw-r--r--test/lib/completions/info.exp7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/lib/completions/info.exp b/test/lib/completions/info.exp
index e7c79e6e..443a1305 100644
--- a/test/lib/completions/info.exp
+++ b/test/lib/completions/info.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 "info "
-
+assert_complete_any "info bash"
+sync_after_int
+assert_complete_any "info -"
sync_after_int