Raise nofile rlimit on powerset tests

Hopefully this helps.
This commit is contained in:
Ivan Molodetskikh
2025-11-27 18:33:55 +03:00
committed by Naxdy
parent 7c77ed81b7
commit 92e5525753
2 changed files with 8 additions and 2 deletions

View File

@@ -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

View File

@@ -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,