mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
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>
This commit is contained in:
parent
cbd58e7cc2
commit
58045186fc
10 changed files with 151 additions and 151 deletions
|
@ -88,7 +88,7 @@ static void test_clock_change(void)
|
|||
|
||||
/* Rewrite RCC.SYSDIV from 16 to 8, so the clock is now 40ns per tick */
|
||||
rcc = readl(SSYS_BASE + RCC);
|
||||
g_assert_cmpuint(extract32(rcc, SYSDIV_SHIFT, SYSDIV_LENGTH), ==, 0xf);
|
||||
g_assert_cmphex(extract32(rcc, SYSDIV_SHIFT, SYSDIV_LENGTH), ==, 0xf);
|
||||
rcc = deposit32(rcc, SYSDIV_SHIFT, SYSDIV_LENGTH, 7);
|
||||
writel(SSYS_BASE + RCC, rcc);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue