You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-03 00:26:59 +02:00
Only run test-level stack trace by default for unit-tested modules.
This amends 70c30dfb
which disabled test tracing in general.
Instead, only enable test tracing by default for modules that are being unit tested. This saves lots of time but still ensures that test tracing is working and helps with debugging in unit tests.
Also rename the option to --debug-test-trace for a clarity.
This commit is contained in:
@ -291,7 +291,7 @@ Function Test Macros
|
||||
In debug builds these macros will update the stack trace with function names and parameters but not log. In production builds all
|
||||
test macros are compiled out.
|
||||
***********************************************************************************************************************************/
|
||||
#ifdef DEBUG_TRACE
|
||||
#ifdef DEBUG_TEST_TRACE
|
||||
#define FUNCTION_TEST_BEGIN() \
|
||||
if (stackTraceTest()) \
|
||||
{ \
|
||||
|
Reference in New Issue
Block a user