2 # vim:ts=4:sw=4:expandtab
4 # Please read the following documents before working on tests:
5 # • http://build.i3wm.org/docs/testsuite.html
8 # • http://build.i3wm.org/docs/lib-i3test.html
9 # (alternatively: perldoc ./testcases/lib/i3test.pm)
11 # • http://build.i3wm.org/docs/ipc.html
14 # • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
15 # (unless you are already familiar with Perl)
17 # Ensures that calling i3 with the -C switch works (smoke test).
19 use i3test i3_autostart => 0;
20 use POSIX ":sys_wait_h";
21 use Time::HiRes qw(sleep);
25 font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
30 my $exit_code = launch_with_config($config, validate_config => 1);
31 isnt($exit_code, 0, 'i3 exited with an error code');
35 # We don't care so much about the output (there are tests for this), but rather
36 # that we got correct output at all instead of, e.g., a segfault.
37 ok($log =~ /Expected one of these tokens/, 'an invalid config token was found');