Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mocking objects with variadic functions arguments cause a EXC_BAD_ACCESS #191

Open
xtreme-josh-wilks opened this issue Apr 16, 2015 · 1 comment

Comments

@xtreme-josh-wilks
Copy link

We're trying to perform a partial mock on an object who has a variadic argument list

ie.

- (BOOL)format:(NSString*)format, ... {
  return YES;
}

When OCMock tries to forward invocation to this method it causes a EXC_BAD_ACCESS when trying to access the variadic arguments (ie. calling va_arg())

@erikdoe
Copy link
Owner

erikdoe commented May 11, 2015

Unfortunately this does not work yet. Will keep this issue open as an enhancement request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants