Add the profiling settings for tests explicit.

Many profiling related tests make assumptions on the profiling settings,
e.g. opt_prof is off by default, and prof_active is default on when opt_prof is
on.  However the default settings can be changed via --with-malloc-conf at build
time.  Fixing the tests by adding the assumed settings explicitly.
This commit is contained in:
Qi Wang
2021-11-15 15:23:47 -08:00
committed by Qi Wang
parent e491df1d2f
commit bd70d8fc0f
13 changed files with 26 additions and 11 deletions

5
test/unit/size_check.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
if [ "x${enable_prof}" = "x1" ] ; then
export MALLOC_CONF="prof:false"
fi