mt_return(3)
bofc manual pages
mt_return(3)
NAME
mt_return - finishes test execution
SYNOPSIS
c/c++
#include <mtest.h>
mt_return()
shell
DESCRIPTION
mt_return(3) should be called once at the very end of main() function. In other words, this macro should be called in main() instead of normal return. Function will print number of tests executed and will exit test program. Returned value is number of tests that have failed, so if return code of application is 0, that means all tests have finished with success. If there is more than 254 tests failed, macro will return 254.
In shell call this function at the very end of shell script.
EXAMPLE
Proper example can be found in mtest_overview(7).
SEE ALSO
mt_defs(3), mt_defs_ext(3), mt_run(3), mt_run(3), mt_assert(3), mt_fail(3), mt_fok(3), mt_ferr(3), mtest_overview(7)
3 September 2018 (1.1.3)
mt_return(3)