]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: avoid re-execing test once for each mock
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 9 Jan 2020 18:01:44 +0000 (18:01 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 10 Jan 2020 10:45:34 +0000 (10:45 +0000)
commit975f2d1c90f2da376545ed08f45e52a177f64f26
treefcf97f2db6f61ebf146d4a9d43afef74423cdf0b
parent66ec00ab3eeb10d2c4c7397886dcce15e1458327
tests: avoid re-execing test once for each mock

When debugging tests under GDB/valgrind there is a significant
delay each time an execve is done as they scan shared libraries
once again. For tests which use many mock libraries, we have
been invoking execve many times which makes the debug experience
horrible. This changes our framework to activate the full
set of mock libraries in one single execve.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tests/qemucapsprobe.c
tests/testutils.c
tests/testutils.h