diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-09-15 12:17:07 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-09-15 14:14:04 -0500 |
commit | 95e8b1be902cce3b5a394066a62e0c32d0688261 (patch) | |
tree | 955b165715e275b70033cf7cd4c956d71d365d21 /src/test/burn/WixToolsetTest.BurnE2E/ExePackageTests.cs | |
parent | ca3bf7968865be1cb80e9d63e7cc177f92469e2f (diff) | |
download | wix-95e8b1be902cce3b5a394066a62e0c32d0688261.tar.gz wix-95e8b1be902cce3b5a394066a62e0c32d0688261.tar.bz2 wix-95e8b1be902cce3b5a394066a62e0c32d0688261.zip |
Add more burn E2E tests.
Fix bug where first splash screen wasn't closed.
Fix bug where billboard only started the first time.
Fix bug where the restart status was lost when the exit code was an error.
Fix bug where the hash byte array length was compared to the hash string length (string is twice as long).
Fix bug where Burn didn't give update hash if the first byte was 0.
Diffstat (limited to 'src/test/burn/WixToolsetTest.BurnE2E/ExePackageTests.cs')
-rw-r--r-- | src/test/burn/WixToolsetTest.BurnE2E/ExePackageTests.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/test/burn/WixToolsetTest.BurnE2E/ExePackageTests.cs b/src/test/burn/WixToolsetTest.BurnE2E/ExePackageTests.cs index e76461f3..42301f30 100644 --- a/src/test/burn/WixToolsetTest.BurnE2E/ExePackageTests.cs +++ b/src/test/burn/WixToolsetTest.BurnE2E/ExePackageTests.cs | |||
@@ -143,6 +143,32 @@ namespace WixToolsetTest.BurnE2E | |||
143 | } | 143 | } |
144 | 144 | ||
145 | [RuntimeFact] | 145 | [RuntimeFact] |
146 | public void CanUseLargeCustomExitCode() | ||
147 | { | ||
148 | var customExitCodeExePackageBundle = this.CreateBundleInstaller(@"CustomExitCodeExePackage"); | ||
149 | |||
150 | var installLogPath = customExitCodeExePackageBundle.Install(5, "EXEEXITCODE=-2147024891"); | ||
151 | customExitCodeExePackageBundle.VerifyUnregisteredAndRemovedFromPackageCache(); | ||
152 | |||
153 | Assert.True(LogVerifier.MessageInLogFile(installLogPath, "TestExe.exe\" /ec -2147024891")); | ||
154 | Assert.True(LogVerifier.MessageInLogFile(installLogPath, "The process for package: TestExe exited with code: 0x80070005. The exit code has been translated to type: ErrorScheduleReboot and restart: Required.")); | ||
155 | Assert.True(LogVerifier.MessageInLogFile(installLogPath, "Applied execute package: TestExe, result: 0x80070005, restart: Required")); | ||
156 | Assert.True(LogVerifier.MessageInLogFile(installLogPath, "Apply complete, result: 0x80070005, restart: Required, ba requested restart: No")); | ||
157 | } | ||
158 | |||
159 | [RuntimeFact] | ||
160 | public void CanUseWildcardCustomExitCode() | ||
161 | { | ||
162 | var customExitCodeExePackageBundle = this.CreateBundleInstaller(@"CustomExitCodeExePackage"); | ||
163 | |||
164 | var installLogPath = customExitCodeExePackageBundle.Install((int)MSIExec.MSIExecReturnCode.SUCCESS, "EXEEXITCODE=1"); | ||
165 | customExitCodeExePackageBundle.VerifyUnregisteredAndRemovedFromPackageCache(); | ||
166 | |||
167 | Assert.True(LogVerifier.MessageInLogFile(installLogPath, "TestExe.exe\" /ec 1")); | ||
168 | Assert.True(LogVerifier.MessageInLogFile(installLogPath, "The process for package: TestExe exited with code: 0x1. The exit code has been translated to type: Success and restart: None.")); | ||
169 | } | ||
170 | |||
171 | [RuntimeFact] | ||
146 | public void CanInstallAndUninstallPerUserArpEntryExePackage() | 172 | public void CanInstallAndUninstallPerUserArpEntryExePackage() |
147 | { | 173 | { |
148 | var perUserArpEntryExePackageBundle = this.CreateBundleInstaller(@"PerUserArpEntryExePackage"); | 174 | var perUserArpEntryExePackageBundle = this.CreateBundleInstaller(@"PerUserArpEntryExePackage"); |