Skip to content

Commit

Permalink
Made changes so that all tests pass on arm64.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdoe committed Apr 23, 2024
1 parent 2b8ec5e commit 47c54d6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions Source/OCMockTests/NSMethodSignatureOCMAdditionsTests.m
Expand Up @@ -30,6 +30,10 @@ @interface NSMethodSignatureOCMAdditionsTests : XCTestCase

@implementation NSMethodSignatureOCMAdditionsTests

#ifndef __arm64__

// Special structure return not really needed on arm64. And we should remove arm and i386 at some point...

- (void)testDeterminesThatSpecialReturnIsNotNeededForNonStruct
{
const char *types = "i";
Expand Down Expand Up @@ -98,6 +102,9 @@ - (void)testArchDependentSpecialReturns
#endif
}

#endif


- (void)testNSMethodSignatureDebugDescriptionWorksTheWayWeExpectIt
{
const char *types = "{CATransform3D=ffffffffffffffff}";
Expand Down
4 changes: 2 additions & 2 deletions Source/OCMockTests/OCMArgTests.m
Expand Up @@ -37,8 +37,8 @@ - (void)testValueMacroCreatesCorrectValueObjects
{
NSRange range = NSMakeRange(5, 5);
XCTAssertEqualObjects(OCMOCK_VALUE(range), [NSValue valueWithRange:range]);
#if !(TARGET_OS_IPHONE && TARGET_RT_64_BIT)
/* This should work everywhere but I can't get it to work on iOS 64-bit */
#ifndef __arm64__
// This should work everywhere but I can't get it to work on arm64
XCTAssertEqualObjects(OCMOCK_VALUE((BOOL){YES}), @YES);
#endif
XCTAssertEqualObjects(OCMOCK_VALUE(42), @42);
Expand Down

0 comments on commit 47c54d6

Please sign in to comment.