Clear expected child failure codes after regression assertions

This commit is contained in:
Shirofune-Security committed 2026-09-18 21:56:01 +09:00
1 parent eb3232faf5
commit bf82f2c458
2 files changed
+6

No files matched your search

@@ -13,4 +13,7 @@ catch { $caught = $_.ToString() }
if ($caught -notmatch 'exit: 9' -or $caught -notmatch 'WELA-smoke-diagnostic') {
throw "Native exit/stderr capture failed: $caught"
}
# The intentionally failed child was asserted above; do not leak its expected
# exit code into a CI shell wrapper after a successful smoke test.
$global:LASTEXITCODE = 0
Write-Host "Read-only Windows smoke checks passed (process creation audit mask: $mask). No Windows settings changed."