summary refs log tree commit diff stats
path: root/util/guest-random.c
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2023-05-11 21:10:16 -0500
committerEric Blake <eblake@redhat.com>2023-06-02 11:24:18 -0500
commit3b4790d4ec1f01a1d0575bda23aa08a2061d601c (patch)
treef14191ccb3b71aa3300ad52cf757bb023f51b048 /util/guest-random.c
parent3a5925922520f934f7b0f96d0c65a041540d7738 (diff)
downloadfocaccia-qemu-3b4790d4ec1f01a1d0575bda23aa08a2061d601c.tar.gz
focaccia-qemu-3b4790d4ec1f01a1d0575bda23aa08a2061d601c.zip
test-cutils: Use g_assert_cmpuint where appropriate
When debugging test failures, seeing unsigned values as large positive
values rather than negative values matters (assuming glib 2.78+; given
that I just fixed a bug in glib 2.76 [1] where g_assert_cmpuint
displays signed instead of unsigned values).  No impact when the test
is passing, but using a consistent style will matter more in upcoming
test additions.  Also, some tests are better with cmphex.

While at it, fix some spacing and minor typing issues spotted nearby.

[1] https://gitlab.gnome.org/GNOME/glib/-/issues/2997

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
Message-Id: <20230522190441.64278-3-eblake@redhat.com>
Diffstat (limited to 'util/guest-random.c')
0 files changed, 0 insertions, 0 deletions