diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-08-01 17:07:25 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-08-02 09:15:14 -0500 |
commit | aacd6b677332f2e262d0df67603c246cd65d833e (patch) | |
tree | 05d4e5a127fc2b5feec6f74144bd195f337a8281 /src/burn/test/BurnUnitTest/ManifestTest.cpp | |
parent | 457ef57f96c1706a63e8f848be3e07a58e7de6a3 (diff) | |
download | wix-aacd6b677332f2e262d0df67603c246cd65d833e.tar.gz wix-aacd6b677332f2e262d0df67603c246cd65d833e.tar.bz2 wix-aacd6b677332f2e262d0df67603c246cd65d833e.zip |
Store list of persisted well-known variables in Burn.
This allows it to reject Variables declared in the manifest that start with the reserved prefix 'Wix'.
Diffstat (limited to 'src/burn/test/BurnUnitTest/ManifestTest.cpp')
-rw-r--r-- | src/burn/test/BurnUnitTest/ManifestTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/burn/test/BurnUnitTest/ManifestTest.cpp b/src/burn/test/BurnUnitTest/ManifestTest.cpp index d899e3f9..5e2725bf 100644 --- a/src/burn/test/BurnUnitTest/ManifestTest.cpp +++ b/src/burn/test/BurnUnitTest/ManifestTest.cpp | |||
@@ -37,8 +37,8 @@ namespace Bootstrapper | |||
37 | "yes" | 37 | "yes" |
38 | #endif | 38 | #endif |
39 | "'>" | 39 | "'>" |
40 | " <UX UxDllPayloadId='ux.dll'>" | 40 | " <UX>" |
41 | " <Payload Id='ux.dll' FilePath='ux.dll' Packaging='embedded' SourcePath='ux.dll' Hash='000000000000' />" | 41 | " <Payload Id='ux.dll' FilePath='ux.dll' Packaging='embedded' SourcePath='u0' />" |
42 | " </UX>" | 42 | " </UX>" |
43 | " <Registration Id='{D54F896D-1952-43e6-9C67-B5652240618C}' Tag='foo' ProviderKey='foo' Version='1.0.0.0' ExecutableName='setup.exe' PerMachine='no' />" | 43 | " <Registration Id='{D54F896D-1952-43e6-9C67-B5652240618C}' Tag='foo' ProviderKey='foo' Version='1.0.0.0' ExecutableName='setup.exe' PerMachine='no' />" |
44 | " <Variable Id='Variable1' Type='numeric' Value='1' Hidden='no' Persisted='no' />" | 44 | " <Variable Id='Variable1' Type='numeric' Value='1' Hidden='no' Persisted='no' />" |
@@ -54,7 +54,7 @@ namespace Bootstrapper | |||
54 | 54 | ||
55 | // load manifest from XML | 55 | // load manifest from XML |
56 | hr = ManifestLoadXmlFromBuffer((BYTE*)szDocument, lstrlenA(szDocument), &engineState); | 56 | hr = ManifestLoadXmlFromBuffer((BYTE*)szDocument, lstrlenA(szDocument), &engineState); |
57 | TestThrowOnFailure(hr, L"Failed to parse searches from XML."); | 57 | TestThrowOnFailure(hr, L"Failed to parse manifest from XML."); |
58 | 58 | ||
59 | // check variable values | 59 | // check variable values |
60 | Assert::True(VariableExistsHelper(&engineState.variables, L"Variable1")); | 60 | Assert::True(VariableExistsHelper(&engineState.variables, L"Variable1")); |