diff options
author | Bob Arnson <bob@firegiant.com> | 2025-04-08 21:05:24 -0400 |
---|---|---|
committer | Bob Arnson <bob@firegiant.com> | 2025-04-08 21:05:24 -0400 |
commit | f892f972ca59e04a727e0ded488741205d2748e8 (patch) | |
tree | 11a8bc7e7d497dcba7a512d0219bb77c630bc679 /src/burn/test/BurnUnitTest | |
parent | 8c7432e50072e009353ea5f2c956ccf453476f71 (diff) | |
download | wix-bob/WixBundleSourceProcess.tar.gz wix-bob/WixBundleSourceProcess.tar.bz2 wix-bob/WixBundleSourceProcess.zip |
Bring back WixBundleSourceProcess* variables.bob/WixBundleSourceProcess
Fixes https://github.com/wixtoolset/issues/issues/9029
Diffstat (limited to 'src/burn/test/BurnUnitTest')
-rw-r--r-- | src/burn/test/BurnUnitTest/PlanTest.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/burn/test/BurnUnitTest/PlanTest.cpp b/src/burn/test/BurnUnitTest/PlanTest.cpp index e426cb09..25a0cb35 100644 --- a/src/burn/test/BurnUnitTest/PlanTest.cpp +++ b/src/burn/test/BurnUnitTest/PlanTest.cpp | |||
@@ -2990,6 +2990,18 @@ namespace Bootstrapper | |||
2990 | ValidateNonPermanentPackageExpectedStates(&pEngineState->packages.rgPackages[1], L"PackageA", BURN_PACKAGE_REGISTRATION_STATE_PRESENT, BURN_PACKAGE_REGISTRATION_STATE_PRESENT); | 2990 | ValidateNonPermanentPackageExpectedStates(&pEngineState->packages.rgPackages[1], L"PackageA", BURN_PACKAGE_REGISTRATION_STATE_PRESENT, BURN_PACKAGE_REGISTRATION_STATE_PRESENT); |
2991 | } | 2991 | } |
2992 | 2992 | ||
2993 | [Fact] | ||
2994 | void ValidateCacheVariables() | ||
2995 | { | ||
2996 | BURN_ENGINE_STATE engineState = { }; | ||
2997 | BURN_ENGINE_STATE* pEngineState = &engineState; | ||
2998 | |||
2999 | InitializeEngineStateForCorePlan(wzSlipstreamModifiedManifestFileName, pEngineState); | ||
3000 | |||
3001 | Assert::EndsWith(gcnew String(L".exe"), VariableGetStringHelper(&pEngineState->variables, BURN_BUNDLE_SOURCE_PROCESS_PATH)); | ||
3002 | Assert::EndsWith(gcnew String(L"\\"), VariableGetStringHelper(&pEngineState->variables, BURN_BUNDLE_SOURCE_PROCESS_FOLDER)); | ||
3003 | } | ||
3004 | |||
2993 | private: | 3005 | private: |
2994 | // This doesn't initialize everything, just enough for CorePlan to work. | 3006 | // This doesn't initialize everything, just enough for CorePlan to work. |
2995 | void InitializeEngineStateForCorePlan(LPCWSTR wzManifestFileName, BURN_ENGINE_STATE* pEngineState) | 3007 | void InitializeEngineStateForCorePlan(LPCWSTR wzManifestFileName, BURN_ENGINE_STATE* pEngineState) |