Narrow writes device test: count the narrow report lines from the classes, not a fixed three

The pooled class adds four narrow lines (two accesses, two row ends). Correction to
44fa96d151's message: WorkCounts is not #[non_exhaustive], so a consumer building it with a
struct literal breaks on the new field; its docs say it is for the lanes, not part of the API.

Verified: the M3 run 7901 failed here (16 lines, asserted 12); rerun follows.
(cherry picked from commit f430e4a52279d588cf73cbf2b89bb52a69d997dc)
This commit is contained in:
Anees Iqbal committed 2026-11-08 03:29:51 -08:00
1 parent e7ca3efeda
commit 85bf1ef03d
1 file changed
+3 -2
@@ -187,8 +187,9 @@ fn narrow_written_textures_take_the_path_their_narrow_check_answered() {
"NARROW-WRITES on {name}: the check took {:?}",
device.in_place_check_took()
);
// Three classes, two narrow accesses, two row ends; none pending.
assert_eq!(narrow.len(), 12, "{report:?}");
// Every class, two narrow accesses, two row ends; none pending.
let lines = crate::in_place::PagesClass::ALL.len() * 2 * crate::in_place::RowEnds::ALL.len();
assert_eq!(narrow.len(), lines, "{report:?}");
assert!(
narrow.iter().all(|line| !line.ends_with("Pending")),
"{narrow:?}"