diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-11-27 18:33:55 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-11-27 18:48:38 +0300 |
| commit | e863f52feaaef9c4149211045013b1f515ac5a8e (patch) | |
| tree | fa7d3710d5956f686aa8831e86469c9dedbd8299 | |
| parent | 8370c539fb584f78924b826d0ac0ad8fa068cf95 (diff) | |
| download | niri-e863f52feaaef9c4149211045013b1f515ac5a8e.tar.gz niri-e863f52feaaef9c4149211045013b1f515ac5a8e.tar.bz2 niri-e863f52feaaef9c4149211045013b1f515ac5a8e.zip | |
Hopefully this helps.
| -rw-r--r-- | niri.spec.rpkg | 3 | ||||
| -rw-r--r-- | src/tests/window_opening.rs | 7 |
2 files changed, 8 insertions, 2 deletions
diff --git a/niri.spec.rpkg b/niri.spec.rpkg index 07742578..44f24913 100644 --- a/niri.spec.rpkg +++ b/niri.spec.rpkg @@ -147,8 +147,7 @@ install -Dm644 -t %{buildroot}%{zsh_completions_dir} ./_niri %if %{with check} %check -# Skip tests that run into open fd limits, until we figure out a fix. -%cargo_test -- --workspace --exclude niri-visual-tests -- --skip=target_output_and_workspaces --skip=target_size --skip=fullscreen_maximize +%cargo_test -- --workspace --exclude niri-visual-tests %endif %files diff --git a/src/tests/window_opening.rs b/src/tests/window_opening.rs index fb546e59..43b88348 100644 --- a/src/tests/window_opening.rs +++ b/src/tests/window_opening.rs @@ -6,6 +6,7 @@ use rayon::iter::{IntoParallelIterator, ParallelIterator}; use super::*; use crate::layout::LayoutElement as _; +use crate::utils::spawning::store_and_increase_nofile_rlimit; use crate::utils::with_toplevel_role; #[test] @@ -162,6 +163,8 @@ impl fmt::Display for DefaultSize { #[test] fn target_output_and_workspaces() { + store_and_increase_nofile_rlimit(); + // Here we test a massive powerset of settings that can affect where a window opens: // // * open-on-workspace @@ -438,6 +441,8 @@ fn target_size() { return; } + store_and_increase_nofile_rlimit(); + // Here we test a massive powerset of settings that can affect the window size: // // * want fullscreen @@ -682,6 +687,8 @@ post-map configures: #[test] fn fullscreen_maximize() { + store_and_increase_nofile_rlimit(); + let open_fullscreen = [None, Some("false"), Some("true")]; let want_fullscreen = [ WantFullscreen::No, |
