Raise nofile rlimit on powerset tests
Browse files at this commite863f52feaaef9c4149211045013b1f515ac5a8eParent: 8370c532 changed files +8 -2
- niri.spec.rpkg +1 -2
- src/tests/window_opening.rs +7 -0
niri.spec.rpkgmodified+1 -2
| @@ -147,8 +147,7 @@ install -Dm644 -t %{buildroot}%{zsh_completions_dir} ./_niri | |||
| 147 | 147 | ||
| 148 | %if %{with check} | 148 | %if %{with check} |
| 149 | %check | 149 | %check |
| 150 | -# Skip tests that run into open fd limits, until we figure out a fix. | 150 | +%cargo_test -- --workspace --exclude niri-visual-tests |
| 151 | -%cargo_test -- --workspace --exclude niri-visual-tests -- --skip=target_output_and_workspaces --skip=target_size --skip=fullscreen_maximize | ||
| 152 | %endif | 151 | %endif |
| 153 | 152 | ||
| 154 | %files | 153 | %files |
src/tests/window_opening.rsmodified+7 -0
| @@ -6,6 +6,7 @@ use rayon::iter::{IntoParallelIterator, ParallelIterator}; | |||
| 6 | 6 | ||
| 7 | use super::*; | 7 | use super::*; |
| 8 | use crate::layout::LayoutElement as _; | 8 | use crate::layout::LayoutElement as _; |
| 9 | +use crate::utils::spawning::store_and_increase_nofile_rlimit; | ||
| 9 | use crate::utils::with_toplevel_role; | 10 | use crate::utils::with_toplevel_role; |
| 10 | 11 | ||
| 11 | #[test] | 12 | #[test] |
| @@ -162,6 +163,8 @@ impl fmt::Display for DefaultSize { | |||
| 162 | 163 | ||
| 163 | #[test] | 164 | #[test] |
| 164 | fn target_output_and_workspaces() { | 165 | fn target_output_and_workspaces() { |
| 166 | + store_and_increase_nofile_rlimit(); | ||
| 167 | + | ||
| 165 | // Here we test a massive powerset of settings that can affect where a window opens: | 168 | // Here we test a massive powerset of settings that can affect where a window opens: |
| 166 | // | 169 | // |
| 167 | // * open-on-workspace | 170 | // * open-on-workspace |
| @@ -438,6 +441,8 @@ fn target_size() { | |||
| 438 | return; | 441 | return; |
| 439 | } | 442 | } |
| 440 | 443 | ||
| 444 | + store_and_increase_nofile_rlimit(); | ||
| 445 | + | ||
| 441 | // Here we test a massive powerset of settings that can affect the window size: | 446 | // Here we test a massive powerset of settings that can affect the window size: |
| 442 | // | 447 | // |
| 443 | // * want fullscreen | 448 | // * want fullscreen |
| @@ -682,6 +687,8 @@ post-map configures: | |||
| 682 | 687 | ||
| 683 | #[test] | 688 | #[test] |
| 684 | fn fullscreen_maximize() { | 689 | fn fullscreen_maximize() { |
| 690 | + store_and_increase_nofile_rlimit(); | ||
| 691 | + | ||
| 685 | let open_fullscreen = [None, Some("false"), Some("true")]; | 692 | let open_fullscreen = [None, Some("false"), Some("true")]; |
| 686 | let want_fullscreen = [ | 693 | let want_fullscreen = [ |
| 687 | WantFullscreen::No, | 694 | WantFullscreen::No, |