From 0cd363dd52c6ff5f47281404bdaf319a9c92fcf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 1 Oct 2026 20:15:58 +0300 Subject: [PATCH] ec-av1: the census child test skips in a normal suite run instead of reddening it lane/unwritten-dep's child helper opens with an unconditional assert that EC_AV1_PLANE_SENTINEL is set, and the test is in the crate's default test list, so every full suite would fail on it. The parent already catches the case the assert wanted (it panics when the child prints no census line), and the child's own non-census path below the assert returns deliberately -- so the entry condition now returns when neither UWDEP_CENSUS_SYNTHETIC nor UWDEP_CENSUS_FIXTURE is set, printing that it skipped rather than passing silently. Swept the class: the five other tests that assert an env var at entry are the EC_AV1_REQUIRE_* skip idiom, which is correct. --- crates/ec-av1/src/stream.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index f5090c4e..0dd92dd4 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -48501,6 +48501,19 @@ exit 0 /// in-process counter -- which no external binary could read. #[test] fn uwdep_child_unwritten_census() { + // Reached with NEITHER variable set means a normal suite run: the parent + // invokes this test BY NAME with the variable set, so there is nothing to + // measure here. Asserting the fill instead made every full suite red + // (`stream::tests::uwdep_child_unwritten_census` is in the default test + // list), and the run it wanted to catch is already caught on the parent's + // side, which panics when the child prints no census line. A standalone + // run SAYS it skipped rather than passing silently. + if std::env::var_os("UWDEP_CENSUS_SYNTHETIC").is_none() + && std::env::var_os("UWDEP_CENSUS_FIXTURE").is_none() + { + println!("UWDEP_CENSUS skipped: not invoked as a census child"); + return; + } assert!( std::env::var_os("EC_AV1_PLANE_SENTINEL").is_some(), "the census child ran without EC_AV1_PLANE_SENTINEL, so the fill was never live \