2022-06-20 10:27:26 -04:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <kernaux/assert.h>
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2022-06-20 14:01:56 -04:00
|
|
|
void test_main(int argc, char **argv);
|
2022-06-20 10:27:26 -04:00
|
|
|
|
2022-06-20 14:01:56 -04:00
|
|
|
static void assert_cb(
|
2022-06-20 10:27:26 -04:00
|
|
|
const char *const file,
|
|
|
|
const int line,
|
|
|
|
const char *const msg
|
|
|
|
) {
|
|
|
|
fprintf(stderr, "%s:%d:%s\n", file, line, msg);
|
|
|
|
abort();
|
|
|
|
}
|
2022-06-20 14:01:56 -04:00
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
kernaux_assert_cb = assert_cb;
|
|
|
|
test_main(argc, argv);
|
|
|
|
exit(EXIT_SUCCESS);
|
|
|
|
}
|