From 4a9609f7a09b7fbe4842422c53bacc187fbfc913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Wed, 14 Jul 2021 16:30:23 +0200 Subject: [PATCH] Correctly skip PosixSignalRegistrationTests on mobile https://github.com/dotnet/runtime/pull/55569 didn't fix the issue since xunit retrieves the MemberData and checks for non-empty *before* evaluating the ConditionalTheory condition. --- .../PosixSignalRegistrationTests.Unix.cs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/PosixSignalRegistrationTests.Unix.cs b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/PosixSignalRegistrationTests.Unix.cs index e08d77565513a1..4b0c9fc01dea3a 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/PosixSignalRegistrationTests.Unix.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/PosixSignalRegistrationTests.Unix.cs @@ -14,19 +14,13 @@ public partial class PosixSignalRegistrationTests { public static IEnumerable UninstallableSignals() { - if (PlatformDetection.IsNotMobile) - { - yield return new object[] { (PosixSignal)9 }; - } + yield return new object[] { (PosixSignal)9 }; } public static IEnumerable SupportedSignals() { - if (PlatformDetection.IsNotMobile) - { - foreach (PosixSignal value in Enum.GetValues(typeof(PosixSignal))) - yield return new object[] { value }; - } + foreach (PosixSignal value in Enum.GetValues(typeof(PosixSignal))) + yield return new object[] { value }; } public static IEnumerable UnsupportedSignals()