-
Notifications
You must be signed in to change notification settings - Fork 777
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash when reloading config with invalid criteria
Came up in #6141
- Loading branch information
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
fix crash when reloading config with invalid criteria |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,34 @@ | ||
#!perl | ||
# vim:ts=4:sw=4:expandtab | ||
# | ||
# Please read the following documents before working on tests: | ||
# • https://build.i3wm.org/docs/testsuite.html | ||
# (or docs/testsuite) | ||
# | ||
# • https://build.i3wm.org/docs/lib-i3test.html | ||
# (alternatively: perldoc ./testcases/lib/i3test.pm) | ||
# | ||
# • https://build.i3wm.org/docs/ipc.html | ||
# (or docs/ipc) | ||
# | ||
# • https://i3wm.org/downloads/modern_perl_a4.pdf | ||
# (unless you are already familiar with Perl) | ||
# | ||
# Verify i3 does not crash when reloading configuration with invalid match | ||
# criteria. | ||
# Ticket: #6141 | ||
# Bug still in: 4.23-47-gbe840af4 | ||
use i3test i3_config => <<EOT; | ||
# i3 config file (v4) | ||
assign [class="class" window_type="some_type"] workspace 1 | ||
assign [class="class" window_type="some_type"] output 1 | ||
for_window [class="class" window_type="some_type"] workspace 1 | ||
no_focus [class="class" window_type="some_type"] workspace 1 | ||
EOT | ||
|
||
does_i3_live; | ||
|
||
cmd 'reload'; | ||
does_i3_live; | ||
|
||
done_testing; |