]> Git Repo - qemu.git/commit
qtest: Don't perform side effects inside assertion
authorEric Blake <[email protected]>
Mon, 11 Sep 2017 17:19:46 +0000 (12:19 -0500)
committerThomas Huth <[email protected]>
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 <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Thomas Huth <[email protected]>
qtest.c
This page took 0.028583 seconds and 4 git commands to generate.