GPU-fault lane: print the notices the failure announced before its claims

a_gpu_fault_fails_its_command_buffer_and_the_queue_runs_on fails on the M3
Max at 58e3a66662 under MVK_CONFIG_RESUME_LOST_DEVICE off (m3-max-13699,
25 of 25 runs): the failed command buffer answers GpuRecoveryVictim where
the test wants GpuHang. The recovery's notice names the command buffer it
failed as the hang; the test now prints every notice before its claims,
so a run says which.

(cherry picked from commit 94dd3c71fe5262aafaeee8c45dbe3320cada5db0)
This commit is contained in:
Anees Iqbal committed 2026-11-10 06:56:59 -08:00
1 parent 452a19eea6
commit 3db4101f09
1 file changed
+7
@@ -1931,6 +1931,13 @@ fn a_gpu_fault_fails_its_command_buffer_and_the_queue_runs_on() {
"runtime GPU fault, resume {resume:?}: {failed:?}; committed beside it: \
{beside_status:?} {beside_error:?}"
);
// What the runtime announced of the failure: a recovery names the command buffer it
// failed as the hang.
let notices = messages.take_notices();
for notice in &notices {
eprintln!("runtime GPU fault, resume {resume:?}: {}", notice.text);
}
messages.restore_notices(notices);
assert_eq!(faulting.status(), CommandBufferStatus::Error, "{resume:?}");
if resume.is_none() {
assert_eq!(committed, Ok(()));