Skip to content

Commit 9716a54

Browse files
committed
test suite: Don't insist on property completions if synclient -l fails
1 parent b4b8916 commit 9716a54

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/lib/completions/synclient.exp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ proc teardown {} {
1111
setup
1212

1313

14-
assert_complete_any "synclient "
14+
assert_complete_any "synclient -"
15+
sync_after_int
16+
17+
18+
# synclient -l may error out with e.g.
19+
# Couldn't find synaptics properties. No synaptics driver loaded?
20+
if {[assert_exec {synclient -l} "" "" "unsupported"]} {
21+
assert_complete_any "synclient "
22+
}
1523
sync_after_int
1624

1725

0 commit comments

Comments
 (0)