Skip to content

Commit

Permalink
Correctly skip PosixSignalRegistrationTests on mobile
Browse files Browse the repository at this point in the history
dotnet#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 b45b5fc commit 4a9609f
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 4a9609f

Please sign in to comment.