You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-03 00:26:59 +02:00
Improvements to test harness memory debugging.
Only set -DDEBUG_MEM for the modules currently being tested rather than globally. Also run tests in a temp mem context. Running in the top context can confuse memory accounting when a new context is created in the top context.
This commit is contained in:
@ -302,7 +302,6 @@ sub run
|
||||
"\n" .
|
||||
"CFLAGS_TEST =" .
|
||||
" \\\n\t" . (($self->{bOptimize} && ($self->{bProfile} || $bPerformance)) ? '-O2' : '-O0') .
|
||||
" \\\n\t-DDEBUG_MEM" .
|
||||
(!$self->{bDebugTestTrace} && $self->{bDebug} ? " \\\n\t-DDEBUG_TEST_TRACE" : '') .
|
||||
($bCoverage ? " \\\n\t-fprofile-arcs -ftest-coverage" : '') .
|
||||
($self->{oTest}->{&TEST_VM} eq VM_NONE ? '' : " \\\n\t-DTEST_CONTAINER_REQUIRED") .
|
||||
|
Reference in New Issue
Block a user