test: make litest_backtrace() available from outside litest.c

Prep-work for adding a new runner

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1067>
This commit is contained in:
Peter Hutterer 2024-10-12 10:35:29 +10:00 committed by Marge Bot
parent b67ab51f76
commit e3b5c0da5f
2 changed files with 3 additions and 1 deletions

View file

@ -150,7 +150,7 @@ _litest_checkpoint(const char *func,
va_end(args);
}
static void
void
litest_backtrace(void)
{
#ifndef LITEST_DISABLE_BACKTRACE_LOGGING

View file

@ -352,6 +352,8 @@ litest_fail_comparison_str(const char *file,
#define litest_assert_double_ge(a_, b_)\
litest_assert_double_ge_epsilon((a_), (b_),LITEST_DEFAULT_EPSILON)
void litest_backtrace(void);
enum litest_device_type {
LITEST_NO_DEVICE = -1,
/* Touchpads and associated devices */