]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: cputests: introduce and use virTestRunLog
authorJán Tomko <jtomko@redhat.com>
Fri, 20 Aug 2021 14:29:45 +0000 (16:29 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 23 Aug 2021 12:43:57 +0000 (14:43 +0200)
commit8628cbe6ad1faae28f54a8f81daa6f393866fcd6
treeee57b00b01f5f9531ffa801809cd255a613d9759
parent0ee2cc3ad83ad7acc2a8e3f0e6e26183a5af0c78
tests: cputests: introduce and use virTestRunLog

A helper that resets the log before each test and prints
it on failure.

It also takes the return variable as an argument,
so it can be used to eliminate number of branches
the compiler has to consider in the main function.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/cputest.c
tests/testutils.c
tests/testutils.h