Skip to content

Commit

Permalink
Correctly skip PosixSignalRegistrationTests on mobile (#55643)
Browse files Browse the repository at this point in the history
#55569 didn't fix the issue since xunit retrieves the MemberData and checks for non-empty *before* evaluating the ConditionalTheory condition.
  • Loading branch information
akoeplinger committed Jul 14, 2021
1 parent fa779e8 commit 62c9312
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,13 @@ public partial class PosixSignalRegistrationTests
{
public static IEnumerable<object[]> UninstallableSignals()
{
if (PlatformDetection.IsNotMobile)
{
yield return new object[] { (PosixSignal)9 };
}
yield return new object[] { (PosixSignal)9 };
}

public static IEnumerable<object[]> 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<object[]> UnsupportedSignals()
Expand Down

0 comments on commit 62c9312

Please sign in to comment.