aboutsummaryrefslogtreecommitdiff
path: root/src/ext/PowerShell/test/WixToolsetTest.PowerShell/PowerShellExtensionFixture.cs
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2025-06-11 22:37:39 -0400
committerBob Arnson <github@bobs.org>2025-06-11 23:34:42 -0400
commitc7b981244cfe0dbca2284690bd5091aeda410de0 (patch)
tree585b9df56e9bf1c3e213e35605c9fc6522268260 /src/ext/PowerShell/test/WixToolsetTest.PowerShell/PowerShellExtensionFixture.cs
parent7051e6a5fdc8965289fbc34d0de2a78dae14e62e (diff)
downloadwix-c7b981244cfe0dbca2284690bd5091aeda410de0.tar.gz
wix-c7b981244cfe0dbca2284690bd5091aeda410de0.tar.bz2
wix-c7b981244cfe0dbca2284690bd5091aeda410de0.zip
Fix unit tests to account for Actions runners:
- 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/ext/PowerShell/test/WixToolsetTest.PowerShell/PowerShellExtensionFixture.cs')
0 files changed, 0 insertions, 0 deletions