Gromacs  2026.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
convert-tpr-with-leaks.cpp File Reference
#include "gmxpre.h"
#include "gromacs/fileio/tpxio.h"
#include "gromacs/mdtypes/inputrec.h"
#include "gromacs/mdtypes/state.h"
#include "gromacs/tools/convert_tpr.h"
#include "gromacs/topology/topology.h"
#include "testutils/cmdlinetest.h"
#include "testutils/stdiohelper.h"
#include "testutils/tprfilegenerator.h"
#include "convert-tpr-fixture.h"
+ Include dependency graph for convert-tpr-with-leaks.cpp:

Description

Tests for gmx convert-tpr that cause memory leaks.

Some legacy features/functions invoked in convert-tpr have memory leaks, which are picked up in AddressSanitizer runs. To avoid blanket suppression, the tests causing the leaks are isolated here.

In particular, the following leaf-level functions are known to leak in these tests: atomcat (mtop_util.cpp), do_atoms (tpxio.cpp), rd_groups (topology/index.cpp).

These functions are called and/or cause leaks when slicing the topology according to an index group.

Author
Eliane Briand elian.nosp@m.e@br.nosp@m..iand.nosp@m..fr