diff options
| author | Bob Arnson <bob@firegiant.com> | 2025-04-08 21:05:24 -0400 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2025-05-28 16:47:43 -0700 |
| commit | 5e68de7ee36892b35998edb4f29fc19509875397 (patch) | |
| tree | 9b9223590a8cdbfbbed6a32ce791d095a149be10 /src/burn/test/BurnUnitTest/PlanTest.cpp | |
| parent | 6644974538985634c2ecc97474d77240e4bea3e4 (diff) | |
| download | wix-5e68de7ee36892b35998edb4f29fc19509875397.tar.gz wix-5e68de7ee36892b35998edb4f29fc19509875397.tar.bz2 wix-5e68de7ee36892b35998edb4f29fc19509875397.zip | |
Bring back WixBundleSourceProcess* variables.
Fixes https://github.com/wixtoolset/issues/issues/9029
Diffstat (limited to 'src/burn/test/BurnUnitTest/PlanTest.cpp')
| -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) |
