summaryrefslogtreecommitdiff
path: root/test/lib/completions/wine.exp
blob: 2cc60c48591f8ab2abc27943c5ae4af973362cf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
proc setup {} {
    save_env
}


proc teardown {} {
    assert_env_unmodified {/OLDPWD=/d}
}


setup


set test "should complete *.exe, *.com files and dirs"
set dir $::srcdir/fixtures/shared/default
assert_complete_dir {"bar bar.d/" foo.d/} "wine " $dir $test


sync_after_int


set test "should complete any files and dirs after executable"
set dir $::srcdir/fixtures/shared/default
set files {bar "bar bar.d/" foo foo.d/}
assert_complete_dir $files "wine notepad " $dir $test


sync_after_int


teardown