Skip to content

pull request #392 results in a regression #405

@twitterkb

Description

@twitterkb

i had updated to tip-of-master and discovered a regression in a test that performs

id mock = [OCMockObject niceMockForClass:[MyClass class]]; [[[mock stub] andReturn:mock] sharedInstance];

based on the comment in #392

Previous code would only catch references to self when using the OCMStub/OCMExpect macros. Now we avoid self referential retain loops if you use the [[[foo stub] andReturn:foo] sharedInstance] API.

i reverted this patch locally, and the failing test no longer fails.

i have put a comment in pull request #392 that i would like to revert it. also opening this issue to go with it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions