Accept ERROR_SUCCESS_REBOOT_REQUIRED in the installer tests (#41389)
Blue committed
Aug 19, 2026 at 23:54 UTC
13c097da103f9a15e7c8019169d45e99c76932ae
1 file changed
+6
-1
test/windows/InstallerTests.cpp
+6
-1
@@ -175,7 +175,12 @@ class InstallerTests
175
176
static void CallMsiExec(const std::wstring& Args)
177
{
178
- VERIFY_ARE_EQUAL(0L, RunMsiExec(Args));
178
+ auto exitCode = RunMsiExec(Args);
179
+ if (exitCode != ERROR_SUCCESS && exitCode != ERROR_SUCCESS_REBOOT_REQUIRED)
180
+ {
181
+ LogError("msiexec failed with exit code %lu", exitCode);
182
+ VERIFY_FAIL();
183
+ }
184
}
185
186
std::wstring GetMsiProductCode() const