Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnirudh Agnihotry <anirudhagnihotry098@gmail.com>2018-04-09 22:08:28 +0300
committerGitHub <noreply@github.com>2018-04-09 22:08:28 +0300
commitd3b70585218bb1e3e068c43bc2eaf1c34c616983 (patch)
treeca2a84e168f246317c9410b419e046330f064828
parentd66a9cda99411be67f6785d0551154c07d0362ac (diff)
Registry Test SetValueWithEnvironmentVariable disabled (#28893)
-rw-r--r--src/Microsoft.Win32.Registry/tests/Registry/Registry_SetValue_str_str_obj.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Microsoft.Win32.Registry/tests/Registry/Registry_SetValue_str_str_obj.cs b/src/Microsoft.Win32.Registry/tests/Registry/Registry_SetValue_str_str_obj.cs
index b40786b989..2238774c6b 100644
--- a/src/Microsoft.Win32.Registry/tests/Registry/Registry_SetValue_str_str_obj.cs
+++ b/src/Microsoft.Win32.Registry/tests/Registry/Registry_SetValue_str_str_obj.cs
@@ -116,6 +116,10 @@ namespace Microsoft.Win32.RegistryTests
[MemberData(nameof(TestEnvironment))]
public void SetValueWithEnvironmentVariable(string valueName, string envVariableName, string expectedVariableValue)
{
+ // ExpandEnvironmentStrings is converting "C:\Program Files (Arm)" to "C:\Program Files (x86)".
+ if (envVariableName == "ProgramFiles" && PlatformDetection.IsArmProcess)
+ return; // [ActiveIssue(https://github.com/dotnet/corefx/issues/28856)]
+
string value = "%" + envVariableName + "%";
Registry.SetValue(TestRegistryKey.Name, valueName, value);