[riot-notifications] [RIOT-OS/RIOT] tests/unittests: rename set_up/tear_down function (#11863)

Martine Lenders notifications at github.com
Fri Jul 19 11:13:20 CEST 2019


> Based on the comments, would it be better if the set_up and tear_down in EMB_UNIT_TESTCALLER are changed instead?
>
> So the changes would be:
> 
> ```
> Test *tests_<module>_<header>_tests(void)
> {
>    ...
> 
>     EMB_UNIT_TESTCALLER(<module>_<header>_tests,
>                         set_up, tear_down, fixtures);
>     /* set up and tear down function can be NULL if omitted */
> 
>     return (Test *)&<module>_<header>;
> }
> ```

Yeah, that would be the better way around. I usually just copy-paste existing tests and completely forgot about the template :sweat_smile: 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11863#issuecomment-513156812
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190719/0c32fc38/attachment.htm>


More information about the notifications mailing list