From 0b4606cbd449c416aeb2a4487399711c21fb5ca6 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 27 Oct 2026 09:31:33 +0100 Subject: [PATCH] Tests: every old-reader gate stage counts the refusal lines its probes printed A case that returned or passed early is Passed but prints no 'OLD-READER refused' line. Each stage now requires the pinned number of those lines (14 C#, 3 Rust, 4 Python, 3 TypeScript) and fails '-refused-count' otherwise. Co-Authored-By: Claude Sonnet 5.5 --- .../old-reader-refusal.sh | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/tests/vectors/document-variants-c2a/old-reader-refusal.sh b/tests/vectors/document-variants-c2a/old-reader-refusal.sh index 574c7b8c..9b002fb7 100755 --- a/tests/vectors/document-variants-c2a/old-reader-refusal.sh +++ b/tests/vectors/document-variants-c2a/old-reader-refusal.sh @@ -25,7 +25,7 @@ # fails the gate by name ('-count') instead of passing with nothing run; a C# result that is not Passed (an [Ignore]d # case is NotExecuted) fails '-notpassed' and Python's skipped/expected-failure forms fail 'python-notpassed'. The expected counts are the constants below; # each is confirmed against the probe's source: C#, the Passed results in the TRX the run wrote (by class); Rust, the sum of 'N passed'; -# Python, 'Ran N tests'; TypeScript, node's 'pass N'. +# Python, 'Ran N tests'; TypeScript, node's 'pass N'. Each stage also counts the refusal lines it printed (EXPECT_REFUSED_*). set -euo pipefail here="tests/vectors/document-variants-c2a" @@ -43,6 +43,13 @@ EXPECT_RUST=3 # tests/old_reader_v3.rs EXPECT_PYTHON=4 # test_old_reader_v3.py EXPECT_TYPESCRIPT=3 # old-reader-v3.test.ts +# Refusals each stage must PRINT: every probe writes one 'OLD-READER refused