<blockquote>
<p>Based on the comments, would it be better if the set_up and tear_down in EMB_UNIT_TESTCALLER are changed instead?</p>
<p>So the changes would be:</p>
<pre><code>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>;
}
</code></pre>
</blockquote>
<p>Yeah, that would be the better way around. I usually just copy-paste existing tests and completely forgot about the template <g-emoji class="g-emoji" alias="sweat_smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f605.png">😅</g-emoji></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/11863?email_source=notifications&email_token=ABE7WYCNRXBQH6LDD6YFNZDQAGATBA5CNFSM4IEZY6L2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2LCNTA#issuecomment-513156812">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYHFPRYLPCZYIXGPJH3QAGATBANCNFSM4IEZY6LQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYGCTJK4WRF5R7HCH7DQAGATBA5CNFSM4IEZY6L2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2LCNTA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/11863?email_source=notifications\u0026email_token=ABE7WYCNRXBQH6LDD6YFNZDQAGATBA5CNFSM4IEZY6L2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2LCNTA#issuecomment-513156812",
"url": "https://github.com/RIOT-OS/RIOT/pull/11863?email_source=notifications\u0026email_token=ABE7WYCNRXBQH6LDD6YFNZDQAGATBA5CNFSM4IEZY6L2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2LCNTA#issuecomment-513156812",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>