1
0
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:
David Steele
2019-02-27 17:09:19 +02:00
parent 3a05359087
commit 18b62a4220
5 changed files with 12 additions and 11 deletions

View File

@ -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()) \
{ \