fix(stage0): harden native smoke provenance audit

This commit is contained in:
2026-06-25 05:04:19 +04:00
parent d1b7b43dce
commit ec6645a21f
3 changed files with 124 additions and 12 deletions
+20
View File
@@ -575,6 +575,26 @@ mod tests {
);
}
#[test]
fn rejects_deprecated_self_assertion_flags() {
for flag in [
"--status",
"--platform",
"--validation-error-count",
"--resize-count",
"--swapchain-recreate-count",
] {
let parsed = SmokeOptions::parse(&[
"--out".to_string(),
"target/report.json".to_string(),
flag.to_string(),
"value".to_string(),
]);
assert_eq!(parsed, Err(format!("unknown native smoke option: {flag}")));
}
}
#[test]
fn renders_string_array_json() {
assert_eq!(