mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33: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
|
@ -69,7 +69,7 @@ static void test_dualtimer(void)
|
|||
* tick VALUE should have wrapped round to 0xffff.
|
||||
*/
|
||||
clock_step(40);
|
||||
g_assert_cmpuint(readl(TIMER_BASE + TIMER1VALUE), ==, 0xffff);
|
||||
g_assert_cmphex(readl(TIMER_BASE + TIMER1VALUE), ==, 0xffff);
|
||||
|
||||
/* Check that any write to INTCLR clears interrupt */
|
||||
writel(TIMER_BASE + TIMER1INTCLR, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue