From 413dd62fc2fb866a3455718a59ebabee74c7964a Mon Sep 17 00:00:00 2001 From: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com> Date: Fri, 5 Jun 2026 09:46:49 -0700 Subject: [PATCH] Allow 0xDEAD exitcode on windows guard page tests Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com> --- src/hyperlight_host/src/mem/shared_mem.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hyperlight_host/src/mem/shared_mem.rs b/src/hyperlight_host/src/mem/shared_mem.rs index f7a8cb3a5..d9c69de2e 100644 --- a/src/hyperlight_host/src/mem/shared_mem.rs +++ b/src/hyperlight_host/src/mem/shared_mem.rs @@ -2800,7 +2800,7 @@ mod tests { /// Returns true if `status` indicates the process died from a /// memory access fault (SIGSEGV on unix, STATUS_ACCESS_VIOLATION - /// on Windows). + /// (or 0xDEAD) on Windows). fn killed_by_access_violation(status: &std::process::ExitStatus) -> bool { #[cfg(unix)] { @@ -2810,7 +2810,8 @@ mod tests { #[cfg(windows)] { use windows::Win32::Foundation::STATUS_ACCESS_VIOLATION; - status.code() == Some(STATUS_ACCESS_VIOLATION.0) + // See https://github.com/hyperlight-dev/hyperlight/issues/1507 + status.code() == Some(STATUS_ACCESS_VIOLATION.0) || status.code() == Some(0xDEAD) } } }