FxLibcTest/src/stdlib/exit.c

40 lines
662 B
C

#include <ft/test.h>
#include <ft/all-tests.h>
#include <stdlib.h>
static jwidget *_ft_stdlib_exit(GUNUSED ft_test *t)
{
exit(EXIT_SUCCESS);
return NULL;
}
ft_test ft_stdlib_exit = {
.name = "Press F5: exit()",
.function = NULL,
.widget = _ft_stdlib_exit,
};
static jwidget *_ft_stdlib__Exit(GUNUSED ft_test *t)
{
_Exit(EXIT_SUCCESS);
return NULL;
}
ft_test ft_stdlib__Exit = {
.name = "Press F5: _Exit()",
.function = NULL,
.widget = _ft_stdlib__Exit,
};
static jwidget *_ft_stdlib_abort(GUNUSED ft_test *t)
{
abort();
return NULL;
}
ft_test ft_stdlib_abort = {
.name = "Press F5: abort()",
.function = NULL,
.widget = _ft_stdlib_abort,
};