diff options
Diffstat (limited to 'src/burn/test')
-rw-r--r-- | src/burn/test/BurnUnitTest/PlanTest.cpp | 2 | ||||
-rw-r--r-- | src/burn/test/BurnUnitTest/RegistrationTest.cpp | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/burn/test/BurnUnitTest/PlanTest.cpp b/src/burn/test/BurnUnitTest/PlanTest.cpp index 0a8ac369..4d726fb4 100644 --- a/src/burn/test/BurnUnitTest/PlanTest.cpp +++ b/src/burn/test/BurnUnitTest/PlanTest.cpp | |||
@@ -2040,7 +2040,7 @@ namespace Bootstrapper | |||
2040 | void PlanTestDetect(BURN_ENGINE_STATE* pEngineState) | 2040 | void PlanTestDetect(BURN_ENGINE_STATE* pEngineState) |
2041 | { | 2041 | { |
2042 | DetectReset(&pEngineState->registration, &pEngineState->packages); | 2042 | DetectReset(&pEngineState->registration, &pEngineState->packages); |
2043 | PlanReset(&pEngineState->plan, &pEngineState->containers, &pEngineState->packages, &pEngineState->layoutPayloads); | 2043 | PlanReset(&pEngineState->plan, &pEngineState->variables, &pEngineState->containers, &pEngineState->packages, &pEngineState->layoutPayloads); |
2044 | 2044 | ||
2045 | pEngineState->userExperience.fEngineActive = TRUE; | 2045 | pEngineState->userExperience.fEngineActive = TRUE; |
2046 | pEngineState->fDetected = TRUE; | 2046 | pEngineState->fDetected = TRUE; |
diff --git a/src/burn/test/BurnUnitTest/RegistrationTest.cpp b/src/burn/test/BurnUnitTest/RegistrationTest.cpp index 86ea86b0..f01d92a4 100644 --- a/src/burn/test/BurnUnitTest/RegistrationTest.cpp +++ b/src/burn/test/BurnUnitTest/RegistrationTest.cpp | |||
@@ -313,6 +313,9 @@ namespace Bootstrapper | |||
313 | plan.pCommand = &command; | 313 | plan.pCommand = &command; |
314 | plan.pInternalCommand = &internalCommand; | 314 | plan.pInternalCommand = &internalCommand; |
315 | 315 | ||
316 | hr = RegistrationSetVariables(®istration, &variables); | ||
317 | TestThrowOnFailure(hr, L"Failed to set registration variables."); | ||
318 | |||
316 | hr = PlanSetResumeCommand(&plan, ®istration, &logging); | 319 | hr = PlanSetResumeCommand(&plan, ®istration, &logging); |
317 | TestThrowOnFailure(hr, L"Failed to set registration resume command."); | 320 | TestThrowOnFailure(hr, L"Failed to set registration resume command."); |
318 | 321 | ||
@@ -339,8 +342,8 @@ namespace Bootstrapper | |||
339 | this->ValidateUninstallKeyDisplayName(L"Product1"); | 342 | this->ValidateUninstallKeyDisplayName(L"Product1"); |
340 | registration.detectedRegistrationType = BOOTSTRAPPER_REGISTRATION_TYPE_FULL; | 343 | registration.detectedRegistrationType = BOOTSTRAPPER_REGISTRATION_TYPE_FULL; |
341 | 344 | ||
342 | hr = RegistrationSetVariables(®istration, &variables); | 345 | hr = RegistrationSetDynamicVariables(®istration, &variables); |
343 | TestThrowOnFailure(hr, L"Failed to set registration variables."); | 346 | TestThrowOnFailure(hr, L"Failed to set dynamic registration variables."); |
344 | 347 | ||
345 | Assert::Equal(1ll, VariableGetNumericHelper(&variables, BURN_BUNDLE_INSTALLED)); | 348 | Assert::Equal(1ll, VariableGetNumericHelper(&variables, BURN_BUNDLE_INSTALLED)); |
346 | Assert::Equal<String^>(gcnew String(L"foo"), VariableGetStringHelper(&variables, BURN_BUNDLE_TAG)); | 349 | Assert::Equal<String^>(gcnew String(L"foo"), VariableGetStringHelper(&variables, BURN_BUNDLE_TAG)); |