From f9303313148c80ad1d26376b943459d38598547b Mon Sep 17 00:00:00 2001 From: Shirofune-Security <43838376+Shirofune-Security@users.noreply.github.com> Date: Sat, 19 Sep 2026 07:35:04 +0900 Subject: [PATCH] Clear handled native-read exit status after Windows smoke assertions --- tests/WefDeployment.Windows.Tests.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/WefDeployment.Windows.Tests.ps1 b/tests/WefDeployment.Windows.Tests.ps1 index aea135ba..fc31ebd8 100644 --- a/tests/WefDeployment.Windows.Tests.ps1 +++ b/tests/WefDeployment.Windows.Tests.ps1 @@ -30,3 +30,6 @@ try { Assert (($before | ConvertTo-Json -Compress) -ceq ($after | ConvertTo-Json -Compress)) 'Read-only audit leaves both service start modes and states unchanged' Write-Host 'WEF Windows read-only smoke passed; no subscription deployment or event delivery is claimed.' } finally { Remove-Item -LiteralPath $temp -Recurse -Force } +# The report retains handled native-read failures (for example a stopped Wecsvc). +# Successful smoke assertions must not inherit that command's exit status. +$global:LASTEXITCODE = 0