From 681da11cfc9a266304b47b88843cb8a365015c63 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Wed, 27 Apr 2022 16:54:28 -0500 Subject: Add ability to disable file system redirection for File/DirectorySearch Fixes 5476 --- src/burn/test/BurnUnitTest/SearchTest.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/burn/test/BurnUnitTest/SearchTest.cpp') diff --git a/src/burn/test/BurnUnitTest/SearchTest.cpp b/src/burn/test/BurnUnitTest/SearchTest.cpp index 7efbca2d..a8e397c2 100644 --- a/src/burn/test/BurnUnitTest/SearchTest.cpp +++ b/src/burn/test/BurnUnitTest/SearchTest.cpp @@ -129,6 +129,9 @@ namespace Bootstrapper L" " L" " L" " + L" " + L" " + L" " L""; // load XML document @@ -145,6 +148,15 @@ namespace Bootstrapper Assert::Equal(0ll, VariableGetNumericHelper(&variables, L"Variable1")); Assert::Equal(1ll, VariableGetNumericHelper(&variables, L"Variable2")); Assert::Equal(gcnew String(pVersion->sczVersion), VariableGetVersionHelper(&variables, L"Variable3")); + + // Assume that consent.exe continues to only exist in 64-bit system folder. + Assert::Equal(0ll, VariableGetNumericHelper(&variables, L"Variable4")); +#if !defined(_WIN64) + Assert::Equal(0ll, VariableGetNumericHelper(&variables, L"Variable5")); +#else + Assert::Equal(1ll, VariableGetNumericHelper(&variables, L"Variable5")); +#endif + Assert::Equal(1ll, VariableGetNumericHelper(&variables, L"Variable6")); } finally { -- cgit v1.2.3-55-g6feb