From e3b5c0da5f213ddaf663344c8ed7f0296f50998d Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Sat, 12 Oct 2024 10:35:29 +1000 Subject: [PATCH] test: make litest_backtrace() available from outside litest.c Prep-work for adding a new runner Part-of: --- test/litest.c | 2 +- test/litest.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/litest.c b/test/litest.c index 67d8157c..cf13ef70 100644 --- a/test/litest.c +++ b/test/litest.c @@ -150,7 +150,7 @@ _litest_checkpoint(const char *func, va_end(args); } -static void +void litest_backtrace(void) { #ifndef LITEST_DISABLE_BACKTRACE_LOGGING diff --git a/test/litest.h b/test/litest.h index c1bf8b77..fdd0899f 100644 --- a/test/litest.h +++ b/test/litest.h @@ -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 */ -- 2.34.1