diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2021-08-03 15:41:18 -0500 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2021-08-04 10:03:57 -0500 |
| commit | 6d7a275edafb3ae0f3cff94d66503a82dafb71f7 (patch) | |
| tree | fae8f75e2cd1d7b179b0ed93e15625d68ba7c441 /src/burn/test/BurnUnitTest/PlanTest.cpp | |
| parent | ed57d171f6fb6bb4e180696cc12caa568599566a (diff) | |
| download | wix-6d7a275edafb3ae0f3cff94d66503a82dafb71f7.tar.gz wix-6d7a275edafb3ae0f3cff94d66503a82dafb71f7.tar.bz2 wix-6d7a275edafb3ae0f3cff94d66503a82dafb71f7.zip | |
Replace static cache internals with a struct.
Initialize them explicitly to make it clearer when that happens.
Diffstat (limited to 'src/burn/test/BurnUnitTest/PlanTest.cpp')
| -rw-r--r-- | src/burn/test/BurnUnitTest/PlanTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/burn/test/BurnUnitTest/PlanTest.cpp b/src/burn/test/BurnUnitTest/PlanTest.cpp index 7909d747..2e3b1092 100644 --- a/src/burn/test/BurnUnitTest/PlanTest.cpp +++ b/src/burn/test/BurnUnitTest/PlanTest.cpp | |||
| @@ -925,6 +925,9 @@ namespace Bootstrapper | |||
| 925 | 925 | ||
| 926 | ::InitializeCriticalSection(&pEngineState->userExperience.csEngineActive); | 926 | ::InitializeCriticalSection(&pEngineState->userExperience.csEngineActive); |
| 927 | 927 | ||
| 928 | hr = CacheInitialize(&pEngineState->cache, &pEngineState->internalCommand); | ||
| 929 | NativeAssert::Succeeded(hr, "Failed to initialize cache."); | ||
| 930 | |||
| 928 | hr = VariableInitialize(&pEngineState->variables); | 931 | hr = VariableInitialize(&pEngineState->variables); |
| 929 | NativeAssert::Succeeded(hr, "Failed to initialize variables."); | 932 | NativeAssert::Succeeded(hr, "Failed to initialize variables."); |
| 930 | 933 | ||
| @@ -948,6 +951,9 @@ namespace Bootstrapper | |||
| 948 | hr = CoreInitializeConstants(pEngineState); | 951 | hr = CoreInitializeConstants(pEngineState); |
| 949 | NativeAssert::Succeeded(hr, "Failed to initialize core constants"); | 952 | NativeAssert::Succeeded(hr, "Failed to initialize core constants"); |
| 950 | 953 | ||
| 954 | hr = CacheInitializeSources(&pEngineState->cache, &pEngineState->registration, &pEngineState->variables, &pEngineState->internalCommand); | ||
| 955 | NativeAssert::Succeeded(hr, "Failed to initialize cache sources."); | ||
| 956 | |||
| 951 | pEngineState->userExperience.pfnBAProc = PlanTestBAProc; | 957 | pEngineState->userExperience.pfnBAProc = PlanTestBAProc; |
| 952 | } | 958 | } |
| 953 | 959 | ||
