From c37f5fd944e3aad2b03943d727dafdadd75c9ab0 Mon Sep 17 00:00:00 2001 From: Gleb Balykov Date: Sun, 29 Oct 2023 13:18:29 +0300 Subject: [PATCH] Fix test returning 100 unconditionally Xunit error XUW1002: Tests should not unconditionally return 100. Convert to a void return. --- src/tests/JIT/opt/RedundantBranch/RedundantBranchUnsigned2.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tests/JIT/opt/RedundantBranch/RedundantBranchUnsigned2.cs b/src/tests/JIT/opt/RedundantBranch/RedundantBranchUnsigned2.cs index 7612414e4d1a58..b42c951517a039 100644 --- a/src/tests/JIT/opt/RedundantBranch/RedundantBranchUnsigned2.cs +++ b/src/tests/JIT/opt/RedundantBranch/RedundantBranchUnsigned2.cs @@ -9,7 +9,7 @@ public class RedundantBranchUnsigned2 { [Fact] - public static int TestEntryPoint() + public static void TestEntryPoint() { int[] arr1 = new int[2]; Test_Span1(arr1, -1); @@ -37,7 +37,6 @@ public static int TestEntryPoint() // Should not throw NRE Test_Array(arr3, -1); - return 100; } private static void Throws(Action action) where T : Exception