Skip to content

Commit adbcf51

Browse files
Add [Category("NativeAOTIgnore")] to JNI method remapping tests
These 4 tests fail on NativeAOT because they rely on native functions (_monodroid_lookup_replacement_method_info / _monodroid_lookup_replacement_type) that are only available on Mono/CoreCLR, not on NativeAOT. Co-authored-by: jonathanpeppers <[email protected]>
1 parent 592a4e9 commit adbcf51

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Java.Interop-Tests/Java.Interop/JniPeerMembersTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public void MethodLookupForNonexistentStaticMethodWillTryFallbacks ()
7878
}
7979

8080
[Test]
81+
[Category ("NativeAOTIgnore")]
8182
public void ReplacementTypeUsedForMethodLookup ()
8283
{
8384
using var o = new RenameClassDerived ();
@@ -86,6 +87,7 @@ public void ReplacementTypeUsedForMethodLookup ()
8687
}
8788

8889
[Test]
90+
[Category ("NativeAOTIgnore")]
8991
public void ReplaceInstanceMethodName ()
9092
{
9193
using var o = new JavaLangRemappingTestObject ();
@@ -95,13 +97,15 @@ public void ReplaceInstanceMethodName ()
9597
}
9698

9799
[Test]
100+
[Category ("NativeAOTIgnore")]
98101
public void ReplaceStaticMethodName ()
99102
{
100103
var r = JavaLangRemappingTestRuntime.remappedToGetRuntime ();
101104
JniObjectReference.Dispose (ref r);
102105
}
103106

104107
[Test]
108+
[Category ("NativeAOTIgnore")]
105109
public void ReplaceInstanceMethodWithStaticMethod ()
106110
{
107111
using var o = new JavaLangRemappingTestObject ();

0 commit comments

Comments
 (0)