aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-09-02 08:07:22 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-09-15 09:06:34 +0300
commitcd0d45fdb88641aa5211c81e69301e85c5dd53a2 (patch)
treefbc92f4fc9cbb525c5a3ad58e0b0b09f9b6fbe7a
parente6a8ad38479eb179dc7301755316f993e3e872ea (diff)
downloadniri-cd0d45fdb88641aa5211c81e69301e85c5dd53a2.tar.gz
niri-cd0d45fdb88641aa5211c81e69301e85c5dd53a2.tar.bz2
niri-cd0d45fdb88641aa5211c81e69301e85c5dd53a2.zip
layout/tests: Mark operations_dont_panic as slow
It's by far the slowest test (disabling it cuts cargo test time by 2x), and it hadn't caught much in the past months.
-rw-r--r--src/layout/tests.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/layout/tests.rs b/src/layout/tests.rs
index 27a05b26..6c20acc4 100644
--- a/src/layout/tests.rs
+++ b/src/layout/tests.rs
@@ -1571,6 +1571,11 @@ fn check_ops_with_options(options: Options, ops: &[Op]) -> Layout<TestWindow> {
#[test]
fn operations_dont_panic() {
+ if std::env::var_os("RUN_SLOW_TESTS").is_none() {
+ eprintln!("ignoring slow test");
+ return;
+ }
+
let every_op = [
Op::AddOutput(0),
Op::AddOutput(1),