summaryrefslogtreecommitdiff
path: root/test/lib/completions/pinfo.exp
blob: de241ff5465d19cd0892eec6adfd2d59386c084a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 bash"
sync_after_int

assert_complete_any "pinfo -"
sync_after_int


teardown