{"action":"created","issue":{"url":"https://api.github.com/repos/cpputest/cpputest/issues/699","labels_url":"https://api.github.com/repos/cpputest/cpputest/issues/699/labels{/name}","comments_url":"https://api.github.com/repos/cpputest/cpputest/issues/699/comments","events_url":"https://api.github.com/repos/cpputest/cpputest/issues/699/events","html_url":"https://github.com/cpputest/cpputest/issues/699","id":94727181,"number":699,"title":"Question: How to properly fail a test from postTestAction()","user":{"login":"arstrube","id":4686469,"avatar_url":"https://avatars.githubusercontent.com/u/4686469?v=3","gravatar_id":"","url":"https://api.github.com/users/arstrube","html_url":"https://github.com/arstrube","followers_url":"https://api.github.com/users/arstrube/followers","following_url":"https://api.github.com/users/arstrube/following{/other_user}","gists_url":"https://api.github.com/users/arstrube/gists{/gist_id}","starred_url":"https://api.github.com/users/arstrube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arstrube/subscriptions","organizations_url":"https://api.github.com/users/arstrube/orgs","repos_url":"https://api.github.com/users/arstrube/repos","events_url":"https://api.github.com/users/arstrube/events{/privacy}","received_events_url":"https://api.github.com/users/arstrube/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-07-13T13:57:57Z","updated_at":"2015-07-14T09:36:50Z","closed_at":null,"body":"I want to write a test plugin that fails any test, if a floating point exception flag is set. This seems easy enough - but I found there is no good example for how to do this.\r\n\r\n* SetPointerPlugin -- here, the macro UT_PTR_SET() really just calls a C function, so when FAIL() is called, the failure actually occurs in the test case. This approach is not suitable for me.\r\n\r\n* MockSupportPlugin -- this is just way too complicated; I can't see the relevant parts in here easily.\r\n\r\n* Simply calling CHECK() -- seems to do everything I need here, however, it will cause a failure outside a test case, which is not the intended result."},"comment":{"url":"https://api.github.com/repos/cpputest/cpputest/issues/comments/121180624","html_url":"https://github.com/cpputest/cpputest/issues/699#issuecomment-121180624","issue_url":"https://api.github.com/repos/cpputest/cpputest/issues/699","id":121180624,"user":{"login":"basvodde","id":509919,"avatar_url":"https://avatars.githubusercontent.com/u/509919?v=3","gravatar_id":"","url":"https://api.github.com/users/basvodde","html_url":"https://github.com/basvodde","followers_url":"https://api.github.com/users/basvodde/followers","following_url":"https://api.github.com/users/basvodde/following{/other_user}","gists_url":"https://api.github.com/users/basvodde/gists{/gist_id}","starred_url":"https://api.github.com/users/basvodde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basvodde/subscriptions","organizations_url":"https://api.github.com/users/basvodde/orgs","repos_url":"https://api.github.com/users/basvodde/repos","events_url":"https://api.github.com/users/basvodde/events{/privacy}","received_events_url":"https://api.github.com/users/basvodde/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T09:36:50Z","updated_at":"2015-07-14T09:36:50Z","body":"Ok"}}