Raise nofile rlimit on powerset tests

Hopefully this helps.
This commit is contained in:
Ivan Molodetskikh
2025-11-27 18:33:55 +03:00
parent 8370c539fb
commit e863f52fea
2 changed files with 8 additions and 2 deletions
+1 -2
View File
@@ -147,8 +147,7 @@ install -Dm644 -t %{buildroot}%{zsh_completions_dir} ./_niri
%if %{with check} %if %{with check}
%check %check
# Skip tests that run into open fd limits, until we figure out a fix. %cargo_test -- --workspace --exclude niri-visual-tests
%cargo_test -- --workspace --exclude niri-visual-tests -- --skip=target_output_and_workspaces --skip=target_size --skip=fullscreen_maximize
%endif %endif
%files %files
+7
View File
@@ -6,6 +6,7 @@ use rayon::iter::{IntoParallelIterator, ParallelIterator};
use super::*; use super::*;
use crate::layout::LayoutElement as _; use crate::layout::LayoutElement as _;
use crate::utils::spawning::store_and_increase_nofile_rlimit;
use crate::utils::with_toplevel_role; use crate::utils::with_toplevel_role;
#[test] #[test]
@@ -162,6 +163,8 @@ impl fmt::Display for DefaultSize {
#[test] #[test]
fn target_output_and_workspaces() { 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: // Here we test a massive powerset of settings that can affect where a window opens:
// //
// * open-on-workspace // * open-on-workspace
@@ -438,6 +441,8 @@ fn target_size() {
return; return;
} }
store_and_increase_nofile_rlimit();
// Here we test a massive powerset of settings that can affect the window size: // Here we test a massive powerset of settings that can affect the window size:
// //
// * want fullscreen // * want fullscreen
@@ -682,6 +687,8 @@ post-map configures:
#[test] #[test]
fn fullscreen_maximize() { fn fullscreen_maximize() {
store_and_increase_nofile_rlimit();
let open_fullscreen = [None, Some("false"), Some("true")]; let open_fullscreen = [None, Some("false"), Some("true")];
let want_fullscreen = [ let want_fullscreen = [
WantFullscreen::No, WantFullscreen::No,