{"action":"opened","issue":{"url":"https://api.github.com/repos/novaprova/novaprova/issues/12","repository_url":"https://api.github.com/repos/novaprova/novaprova","labels_url":"https://api.github.com/repos/novaprova/novaprova/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/novaprova/novaprova/issues/12/comments","events_url":"https://api.github.com/repos/novaprova/novaprova/issues/12/events","html_url":"https://github.com/novaprova/novaprova/issues/12","id":132125288,"number":12,"title":"Direct calling of mocked function (i.e. from within the mock)","user":{"login":"mcpat","id":225660,"avatar_url":"https://avatars.githubusercontent.com/u/225660?v=3","gravatar_id":"","url":"https://api.github.com/users/mcpat","html_url":"https://github.com/mcpat","followers_url":"https://api.github.com/users/mcpat/followers","following_url":"https://api.github.com/users/mcpat/following{/other_user}","gists_url":"https://api.github.com/users/mcpat/gists{/gist_id}","starred_url":"https://api.github.com/users/mcpat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcpat/subscriptions","organizations_url":"https://api.github.com/users/mcpat/orgs","repos_url":"https://api.github.com/users/mcpat/repos","events_url":"https://api.github.com/users/mcpat/events{/privacy}","received_events_url":"https://api.github.com/users/mcpat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-08T12:06:26Z","updated_at":"2016-02-08T12:06:26Z","closed_at":null,"body":"As far as I can see, there is currently no means available to call a mocked function directly avoiding the redirection to the mock. I imagine something similiar to the linker wrapping some function and still providing access to the __real_function.\r\n\r\nThe use case for that is, for example, to check if between fork and exec* only async-signal safe functions are called. This requires interception of fork and exec* and installation of temporary mocks for unsafe functions like malloc. Currently I do that using the wrap facility of the linker but it would be great if it could be done with your framework."}}