]> git.proxmox.com Git - mirror_qemu.git/commit
qtest: Don't perform side effects inside assertion
authorEric Blake <eblake@redhat.com>
Mon, 11 Sep 2017 17:19:46 +0000 (12:19 -0500)
committerThomas Huth <thuth@redhat.com>
Fri, 15 Sep 2017 07:05:19 +0000 (09:05 +0200)
commit147731258d6087bc3ba0b299009bc2a3beec3c99
treed70b2b3d7aaf408ab5202812461a8684b97ebd4a
parentf94b3f64e6572c8cec73a538588f7cd754bcfa88
qtest: Don't perform side effects inside assertion

Assertions should be separate from the side effects, since in
theory, g_assert() can be disabled (in practice, we can't really
ever do that).

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
qtest.c