test fix
This commit is contained in:
parent
3410a79b6a
commit
fb652c39ae
1 changed files with 10 additions and 8 deletions
|
|
@ -336,14 +336,16 @@ impl Identity {
|
||||||
/// was a genuine defect that had shipped in a release (`CBaseEntity::DispatchTraceAttack`, in fact
|
/// was a genuine defect that had shipped in a release (`CBaseEntity::DispatchTraceAttack`, in fact
|
||||||
/// `CLogicRelay::Trigger`). n=1, so this rejects one entry rather than aborting a release.
|
/// `CLogicRelay::Trigger`). n=1, so this rejects one entry rather than aborting a release.
|
||||||
fn contradiction(&self, lib: &str, img: &CodeImage, addr: u64, name: &str) -> Option<String> {
|
fn contradiction(&self, lib: &str, img: &CodeImage, addr: u64, name: &str) -> Option<String> {
|
||||||
// `Identity::of` gives every loaded image an entry, so a miss here does NOT mean "a library with
|
// `Identity::of` gives every loaded image an entry, and both call sites key from a file in that
|
||||||
// no evidence" — it means the caller holds the wrong FORM of the key, and the `?` below then
|
// same map, so a miss here does NOT mean "a library with no evidence" — it means the caller holds
|
||||||
// disables this entire check without a word. That is precisely how it sat dead on the fold path.
|
// the wrong FORM of the key, and the `?` this used to be then disabled the entire check without a
|
||||||
debug_assert!(
|
// word. That is precisely how it sat dead on the fold path.
|
||||||
self.0.contains_key(lib),
|
//
|
||||||
"Identity is keyed by SHORT library name (`server`), got `{lib}`"
|
// NOT a `debug_assert!`: that compiles out in release, and the shipped binary is a release build,
|
||||||
);
|
// so the guard would have gone on silently passing in the one configuration that matters.
|
||||||
let lib = self.0.get(lib)?;
|
let Some(lib) = self.0.get(lib) else {
|
||||||
|
panic!("Identity is keyed by SHORT library name (`server`), got `{lib}`");
|
||||||
|
};
|
||||||
let (class, method) = name.split_once("::")?;
|
let (class, method) = name.split_once("::")?;
|
||||||
let registered = lib.vscript_at.get(&addr)?;
|
let registered = lib.vscript_at.get(&addr)?;
|
||||||
if names_correspond(registered, method) {
|
if names_correspond(registered, method) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue