summaryrefslogtreecommitdiff
path: root/test/lib/completions/synclient.exp
blob: 1e9c7b5be44356b3d1523d4e383bd20fa7f904dc (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
proc setup {} {
    save_env
}


proc teardown {} {
    assert_env_unmodified
}


setup


assert_complete_any "synclient -"
sync_after_int


# synclient -l may error out with e.g.
# Couldn't find synaptics properties. No synaptics driver loaded?
if {[assert_exec {synclient -l} "" "" "unsupported"]} {
    assert_complete_any "synclient "
}
sync_after_int


teardown