diff options
| author | Bob Arnson <bob@firegiant.com> | 2025-06-11 22:37:39 -0400 |
|---|---|---|
| committer | Bob Arnson <bob@firegiant.com> | 2025-06-11 22:46:10 -0400 |
| commit | 09209f98a2951a56c0bd6ac0100a0d6eeb02e3d7 (patch) | |
| tree | 585b9df56e9bf1c3e213e35605c9fc6522268260 /src/libs/libs.cmd | |
| parent | ccf2b7bf8b60dbb4ece85167ff1f1c6564fc5b6c (diff) | |
| download | wix-bob/PayloadsHarvesting.tar.gz wix-bob/PayloadsHarvesting.tar.bz2 wix-bob/PayloadsHarvesting.zip | |
Fix unit tests to account for Actions runners:bob/PayloadsHarvesting
- Handle extra-long paths being normalized to either \\?\\ and "normal."
- Rewrite PathGetTempPathTest test because it's not a good test:
- By overwriting `TMP` with an extra-long path, it causes
`::GetTempPath[2]W` to fall back to the value of `TEMP` instead.
- But that's testing `::GetTempPath[2]W`, not `PathGetTempPath`.
- It also assumes `TMP` and `TEMP` are set typically.
- It also assumes it's not running as LocalSystem.
- Instead, just compare the values you get from `::GetTempPathW` and
`PathGetTempPath`.
Fixes https://github.com/wixtoolset/issues/issues/9087
Diffstat (limited to 'src/libs/libs.cmd')
| -rw-r--r-- | src/libs/libs.cmd | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/libs.cmd b/src/libs/libs.cmd index d8b81f54..acf5ff55 100644 --- a/src/libs/libs.cmd +++ b/src/libs/libs.cmd | |||
| @@ -22,6 +22,7 @@ | |||
| 22 | msbuild -Restore libs_t.proj -p:Configuration=%_C% -tl -nologo -m -warnaserror -bl:%_L%\libs_build.binlog || exit /b | 22 | msbuild -Restore libs_t.proj -p:Configuration=%_C% -tl -nologo -m -warnaserror -bl:%_L%\libs_build.binlog || exit /b |
| 23 | 23 | ||
| 24 | dotnet test ^ | 24 | dotnet test ^ |
| 25 | --results-directory %_L%\TestResults --blame-hang-timeout 1min --blame-hang-dump-type mini -l:"console;verbosity=detailed" ^ | ||
| 25 | %_B%\net6.0\WixToolsetTest.Versioning.dll ^ | 26 | %_B%\net6.0\WixToolsetTest.Versioning.dll ^ |
| 26 | %_B%\x86\DUtilUnitTest.dll ^ | 27 | %_B%\x86\DUtilUnitTest.dll ^ |
| 27 | %_B%\x64\DUtilUnitTest.dll ^ | 28 | %_B%\x64\DUtilUnitTest.dll ^ |
