diff options
author | Inès Varhol <ines.varhol@telecom-paris.fr> | 2024-04-14 19:28:21 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2024-04-25 07:03:04 +0200 |
commit | 58045186fccaf400d3938fad220a99b1b5f3da6d (patch) | |
tree | 52c20b0b22092cf10274811ee92154beb9f27872 /tests/qtest/erst-test.c | |
parent | cbd58e7cc26cef811bd947f48345ec930481e4e2 (diff) | |
download | qemu-58045186fccaf400d3938fad220a99b1b5f3da6d.zip qemu-58045186fccaf400d3938fad220a99b1b5f3da6d.tar.gz qemu-58045186fccaf400d3938fad220a99b1b5f3da6d.tar.bz2 |
tests/qtest : Use `g_assert_cmphex` instead of `g_assert_cmpuint`
The messages for assertions using hexadecimal numbers will be
easier to understand with `g_assert_cmphex`.
Cases changed : "cmpuint.*0x", "cmpuint.*<<"
Signed-off-by: Inès Varhol <ines.varhol@telecom-paris.fr>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Ninad Palsule <ninad@linux.ibm.com>
Message-ID: <20240414173349.31194-1-ines.varhol@telecom-paris.fr>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qtest/erst-test.c')
-rw-r--r-- | tests/qtest/erst-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qtest/erst-test.c b/tests/qtest/erst-test.c index c45bee7..36bbe12 100644 --- a/tests/qtest/erst-test.c +++ b/tests/qtest/erst-test.c @@ -109,7 +109,7 @@ static void setup_vm_cmd(ERSTState *s, const char *cmd) g_assert_cmpuint(s->reg_barsize, ==, 16); s->mem_bar = qpci_iomap(s->dev, 1, &s->mem_barsize); - g_assert_cmpuint(s->mem_barsize, ==, 0x2000); + g_assert_cmphex(s->mem_barsize, ==, 0x2000); qpci_device_enable(s->dev); } |