EXIT_TEST macro added for cleaner implementation and maintenance

This commit is contained in:
kaleb-himes
2016-12-09 19:39:36 -07:00
parent 1748045d52
commit 6c7e1785aa
4 changed files with 12 additions and 25 deletions

View File

@@ -210,11 +210,7 @@ int testsuite_test(int argc, char** argv)
#endif /* HAVE_WNR */
printf("\nAll tests passed!\n");
#ifdef WOLFSSL_RIOT_OS
exit(0);
#else
return EXIT_SUCCESS;
#endif
EXIT_TEST(EXIT_SUCCESS);
}
void simple_test(func_args* args)
@@ -415,11 +411,8 @@ int main(int argc, char** argv)
if (server_args.return_code != 0) return server_args.return_code;
printf("\nAll tests passed!\n");
#ifdef WOLFSSL_RIOT_OS
exit(0);
#else
return EXIT_SUCCESS;
#endif
EXIT_TEST(EXIT_SUCCESS);
}