mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Raise nofile rlimit on powerset tests
Hopefully this helps.
This commit is contained in:
+1
-2
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user