diff options
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) |
