1
0
Fork 0
mirror of https://github.com/tailix/libclayer.git synced 2024-11-20 11:06:24 -05:00
libclayer/tests/main.c

27 lines
450 B
C
Raw Normal View History

2022-12-25 03:58:00 -05:00
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <kernaux/runtime.h>
#include <stdio.h>
#include <stdlib.h>
void test_main(int argc, char **argv);
static void assert_cb(
const char *const file,
const int line,
const char *const msg
) {
fprintf(stderr, "%s:%d:%s\n", file, line, msg);
abort();
}
int main(int argc, char **argv)
{
kernaux_assert_cb = assert_cb;
test_main(argc, argv);
exit(EXIT_SUCCESS);
}