summaryrefslogtreecommitdiff
path: root/test/lib/completions/info.exp
blob: 443a130567a22391fb582593e267103cfd485ef8 (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 "info bash"
sync_after_int

assert_complete_any "info -"
sync_after_int


teardown