commit | 04770ccd3daf8ea39b03bf7ab642a1a0aa783e98 | [log] [tgz] |
---|---|---|
author | Michal Orzel <michalx.orzel@intel.com> | Tue Jun 18 10:38:22 2024 +0200 |
committer | Michal Orzel <michalx.orzel@intel.com> | Mon Jul 22 07:45:26 2024 +0000 |
tree | ab70df1fa88b1a2dd132b95ea6ab50a39bab7ffb | |
parent | f38b5c9183d7ad6b8f0ce1b6330d154f65d8e79f [diff] |
unit-test: Support for valgrind on boost When UTs, which are run under valgrind, utilize boost coroutines, there might occur errors during stack switching. Boost has prepared an option to suppress these errors with build option `valgrind=on`, combined with compile flag `BOOST_USE_VALGRIND` [1]. This patch implements these options into boost package and CMake/Meson project configurations. Tested: On a change where CI are failing due to valgrind errors [2]. When using container from this patch, these errors stop appearing and CI ends with success. [1] https://www.boost.org/doc/libs/1_82_0/libs/context/doc/html/context/stack/valgrind.html [2] https://gerrit.openbmc.org/c/openbmc/jsnbd/+/59600/11 Change-Id: I183eaf7c15ac9cc2799f446fe7fb933d957fac21 Signed-off-by: Michal Orzel <michalx.orzel@intel.com>