]> git.sur5r.net Git - i3/i3/blob - testcases/t/260-invalid-criteria.t
Merge branch 'release-4.16.1'
[i3/i3] / testcases / t / 260-invalid-criteria.t
1 #!perl
2 # vim:ts=4:sw=4:expandtab
3 #
4 # Please read the following documents before working on tests:
5 # • https://build.i3wm.org/docs/testsuite.html
6 #   (or docs/testsuite)
7 #
8 # • https://build.i3wm.org/docs/lib-i3test.html
9 #   (alternatively: perldoc ./testcases/lib/i3test.pm)
10 #
11 # • https://build.i3wm.org/docs/ipc.html
12 #   (or docs/ipc)
13 #
14 # • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
15 #   (unless you are already familiar with Perl)
16 #
17 # Ticket: #2091
18 use i3test;
19
20 my $ws = fresh_workspace;
21 open_window;
22
23 my $result = cmd '[con_id=foobar] kill';
24 is($result->[0]->{success}, 0, 'command was unsuccessful');
25 is($result->[0]->{error}, 'Invalid match: invalid con_id', 'correct error is returned');
26
27 done_testing;