d0353b6e7b
tests/qtest: Fix npcm7xx_timer-test.c flaky test
...
npcm7xx_timer-test occasionally fails due to the state of the timers
from the previous test iteration. Advancing the clock step after the
reset resolves this issue.
Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1897
Signed-off-by: Chris Rauer <crauer@google.com >
Message-ID: <20230929000831.691559-1-crauer@google.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2023-10-12 14:11:44 +02:00
96420a30e0
tests/: spelling fixes
...
with some rewording in
tests/qemu-iotests/298
tests/qtest/fuzz/generic_fuzz.c
tests/unit/test-throttle.c
as suggested by Eric.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
Reviewed-by: Eric Blake <eblake@redhat.com >
2023-09-08 13:08:52 +03:00
f369797617
tests/qtest: variable defined by g_autofree need to be initialized
...
According to the glib function requirements, we need initialise
the variable. Otherwise there will be compilation warnings:
glib-autocleanups.h:28:3: warning: ‘full_name’ may be
used uninitialized in this function [-Wmaybe-uninitialized]
28 | g_free (*pp);
| ^~~~~~~~~~~~
Reported-by: Euler Robot <euler.robot@huawei.com >
Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com >
Reviewed-by: Thomas Huth <thuth@redhat.com >
Reviewed-by: Havard Skinnemoen <hskinnemoen@google.com >
Message-Id: <20201118115646.2461726-2-kuhn.chenqun@huawei.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2020-11-20 13:34:22 +01:00
19d50149c8
tests/qtest: Add npcm7xx timer test
...
This test exercises the various modes of the npcm7xx timer. In
particular, it triggers the bug found by the fuzzer, as reported here:
https://lists.gnu.org/archive/html/qemu-devel/2020-09/msg02992.html
It also found several other bugs, especially related to interrupt
handling.
The test exercises all the timers in all the timer modules, which
expands to 180 test cases in total.
Reviewed-by: Tyrone Ting <kfting@nuvoton.com >
Signed-off-by: Havard Skinnemoen <hskinnemoen@google.com >
Message-id: 20201008232154.94221-2-hskinnemoen@google.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2020-10-20 16:12:00 +01:00