Skip to content

Commit 7420ee7

Browse files
authored
Fix test returning 100 unconditionally (#94146)
Xunit error XUW1002: Tests should not unconditionally return 100. Convert to a void return.
1 parent e5c631d commit 7420ee7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/tests/JIT/opt/RedundantBranch/RedundantBranchUnsigned2.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
public class RedundantBranchUnsigned2
1010
{
1111
[Fact]
12-
public static int TestEntryPoint()
12+
public static void TestEntryPoint()
1313
{
1414
int[] arr1 = new int[2];
1515
Test_Span1(arr1, -1);
@@ -37,7 +37,6 @@ public static int TestEntryPoint()
3737

3838
// Should not throw NRE
3939
Test_Array(arr3, -1);
40-
return 100;
4140
}
4241

4342
private static void Throws<T>(Action action) where T : Exception

0 commit comments

Comments
 (0)