diff options
author | Anirudh Agnihotry <anirudhagnihotry098@gmail.com> | 2018-04-09 22:08:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-09 22:08:28 +0300 |
commit | d3b70585218bb1e3e068c43bc2eaf1c34c616983 (patch) | |
tree | ca2a84e168f246317c9410b419e046330f064828 | |
parent | d66a9cda99411be67f6785d0551154c07d0362ac (diff) |
Registry Test SetValueWithEnvironmentVariable disabled (#28893)
-rw-r--r-- | src/Microsoft.Win32.Registry/tests/Registry/Registry_SetValue_str_str_obj.cs | 4 |
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); |