Skip to content

Commit

Permalink
dotnet#71252 disable only for android x86
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhamoyan committed Jun 29, 2022
1 parent 7194fc5 commit 0904e1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public static partial class PlatformDetection
public static bool IsNetBSD => RuntimeInformation.IsOSPlatform(OSPlatform.Create("NETBSD"));
public static bool IsAndroid => RuntimeInformation.IsOSPlatform(OSPlatform.Create("ANDROID"));
public static bool IsNotAndroid => !IsAndroid;
public static bool IsNotAndroidX86 => IsNotAndroid || (IsAndroid && IsNotX86Process);
public static bool IsiOS => RuntimeInformation.IsOSPlatform(OSPlatform.Create("IOS"));
public static bool IstvOS => RuntimeInformation.IsOSPlatform(OSPlatform.Create("TVOS"));
public static bool IsMacCatalyst => RuntimeInformation.IsOSPlatform(OSPlatform.Create("MACCATALYST"));
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/System.Runtime/tests/System/DoubleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ public static void Atan2PiTest(double y, double x, double expectedResult, double
AssertExtensions.Equal(+expectedResult, double.Atan2Pi(+y, +x), allowedVariance);
}

[ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotAndroid), nameof(PlatformDetection.IsNotX86Process))] // disabled on Android x86, see https://github.com/dotnet/runtime/issues/71252
[ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNotAndroidX86))] // disabled on Android x86, see https://github.com/dotnet/runtime/issues/71252
[InlineData( double.NaN, double.NaN, 0.0)]
[InlineData( 0.0, 0.0, 0.0)]
[InlineData( 1.5574077246549022, 0.31830988618379067, CrossPlatformMachineEpsilon)]
Expand Down

0 comments on commit 0904e1f

Please sign in to comment.