diff --git a/tests/introspection/ApiPInvokeTest.cs b/tests/introspection/ApiPInvokeTest.cs index 1a54008d69..9fba4f0654 100644 --- a/tests/introspection/ApiPInvokeTest.cs +++ b/tests/introspection/ApiPInvokeTest.cs @@ -124,6 +124,13 @@ namespace Introspection protected virtual bool Skip (string symbolName) { + switch (symbolName) { + // it's not needed for ARM64/ARM64_32 and Apple does not have stubs for them in libobjc.dylib + // also the linker normally removes them (unreachable due to other optimizations) + case "objc_msgSend_stret": + case "objc_msgSendSuper_stret": + return true; + } return false; } diff --git a/tests/introspection/Mac/MacApiPInvokeTest.cs b/tests/introspection/Mac/MacApiPInvokeTest.cs index 5aa7fe2faa..5762ba5fe5 100644 --- a/tests/introspection/Mac/MacApiPInvokeTest.cs +++ b/tests/introspection/Mac/MacApiPInvokeTest.cs @@ -63,7 +63,7 @@ namespace Introspection { case "SKTerminateForInvalidReceipt": // Only there for API compat return !IsUnified; } - return false; + return base.Skip (symbolName); } protected override bool SkipAssembly (Assembly a) diff --git a/tests/introspection/iOS/iOSApiPInvokeTest.cs b/tests/introspection/iOS/iOSApiPInvokeTest.cs index 2e06301977..1dd76864df 100644 --- a/tests/introspection/iOS/iOSApiPInvokeTest.cs +++ b/tests/introspection/iOS/iOSApiPInvokeTest.cs @@ -59,10 +59,6 @@ namespace Introspection { case "CVPixelBufferGetIOSurface": case "CVPixelBufferCreateWithIOSurface": return simulator && !TestRuntime.CheckXcodeVersion (11, 0); - // it's not needed for ARM64/ARM64_32 and Apple does not have stubs for them in libobjc.dylib - case "objc_msgSend_stret": - case "objc_msgSendSuper_stret": - return !simulator; default: // MLCompute not available in simulator as of Xcode 12 beta 3