Inert step tolerates only 'not registered'; guard fails on query or plist errors; test asserts the tile rejection (R2.15)

This commit is contained in:
ZacharyZhang-NY committed 2026-10-09 01:31:08 -04:00
1 parent 1745ee237d
commit b5d490c49a
3 files changed
+15 -4

No files matched your search

+8 -2
View File
@@ -290,8 +290,14 @@ fn an_unpatched_build_is_rejected() {
return;
}
let dir = tempfile::tempdir().expect("a temp dir");
let outcome = Worker::spawn(&frameworks, &dir.path().join("profile"));
assert!(outcome.is_err(), "the unpatched build must be rejected");
let Err(error) = Worker::spawn(&frameworks, &dir.path().join("profile")) else {
panic!("the unpatched build must be rejected");
};
assert_eq!(error.kind(), std::io::ErrorKind::InvalidData, "{error}");
assert!(
error.to_string().contains("does not paint tiles (unpatched)"),
"rejected for the tile check, not {error}"
);
}
#[test]