Disable NJulianRuleTest on Android (#73030)
authorTarek Mahmoud Sayed <tarekms@microsoft.com>
Fri, 29 Jul 2022 21:36:15 +0000 (21:36 +0000)
committerGitHub <noreply@github.com>
Fri, 29 Jul 2022 21:36:15 +0000 (14:36 -0700)
Co-authored-by: Ilona Tomkowicz <32700855+ilonatommy@users.noreply.github.com>
src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs

index 53b4eeb..ea3b1bf 100644 (file)
@@ -2573,7 +2573,10 @@ namespace System.Tests
             // 0x3E, 0x2C, 0x30, 0x2F, 0x30, 0x2C, 0x4A, 0x33, 0x36, 0x35, 0x2F, 0x32, 0x35, 0x0A
         };
 
-        [ConditionalTheory(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
+        // https://github.com/dotnet/runtime/issues/73031 is the tracking issue to investigate the test failure on Android.
+        private static bool CanRunNJulianRuleTest => !PlatformDetection.IsLinuxBionic && RemoteExecutor.IsSupported;
+
+        [ConditionalTheory(nameof(CanRunNJulianRuleTest))]
         [PlatformSpecific(TestPlatforms.AnyUnix)]
         [InlineData("<+00>0<+01>,0/0,J365/25", 1, 1, true)]
         [InlineData("<+00>0<+01>,30/0,J365/25", 31, 1, true)]