Crash test: a panic inside the kernel is the command's internal error
The kernel crash test's command must fail with EngineError::Internal naming diagnostics.crash_test, as a panic in the command itself does: the panic detectors (hostile_params_never_panic, the fuzzer) look for Internal. Today it is EngineError::Other. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DtL5M41G8Nua7HvuFPZkmJ
This commit is contained in:
@@ -168,8 +168,10 @@ fn child() {
|
||||
}
|
||||
assert_eq!(s.doc.features.len(), 1, "the design is unchanged");
|
||||
}
|
||||
// A panic inside a solidcore call: caught there, an internal error of the command.
|
||||
"kernel" => {
|
||||
assert!(s.execute("diagnostics.crash_test", &json!({"mode": "kernel"})).is_err());
|
||||
let r = s.execute("diagnostics.crash_test", &json!({"mode": "kernel"}));
|
||||
assert!(matches!(&r, Err(crate::EngineError::Internal(id, _)) if id == "diagnostics.crash_test"), "{r:?}");
|
||||
}
|
||||
// `thread_dies`: the panic ends the app, as one on the window's thread does.
|
||||
"thread" | "thread_dies" => {
|
||||
|
||||
Reference in New Issue
Block a user