diff options
| -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, |
