Skip to content

Commit

Permalink
[monotouch-test] Fix bool encoding in tests on ARM64 on Mac Catalyst. (
Browse files Browse the repository at this point in the history
…xamarin#17695)

Fixes:

    [FAIL] TestTypeEncodings :   xamarin#14
        String lengths are both 1. Strings differ at index 0.
        Expected: "B"
        But was:  "c"
        -----------^
  • Loading branch information
rolfbjarne committed Mar 8, 2023
1 parent d1804f5 commit d6d02fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/monotouch-test/ObjCRuntime/RegistrarTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1455,6 +1455,8 @@ public void TestTypeEncodings ()
var sig = Runtime.GetNSObject<NSMethodSignature> (Messaging.IntPtr_objc_msgSend_IntPtr (cl.Handle, Selector.GetHandle ("methodSignatureForSelector:"), Selector.GetHandle ("foo::::::::::::::::")));
#if MONOMAC
var boolEncoding = TrampolineTest.IsArm64CallingConvention ? "B" : "c";
#elif __MACCATALYST__
var boolEncoding = "B";
#else
var boolEncoding = (IntPtr.Size == 8 || TrampolineTest.IsArmv7k || TrampolineTest.IsArm64CallingConvention) ? "B" : "c";

Expand Down

0 comments on commit d6d02fa

Please sign in to comment.