* [PATCH v2] tests/qtest: Fix npcm7xx_timer-test.c flaky test
@ 2023-09-29 0:08 Chris Rauer
2023-09-29 6:28 ` Thomas Huth
0 siblings, 1 reply; 2+ messages in thread
From: Chris Rauer @ 2023-09-29 0:08 UTC (permalink / raw)
To: kfting, wuhaotsh, thuth, lvivier, pbonzini, stefanha
Cc: qemu-arm, qemu-devel, Chris Rauer
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>
---
tests/qtest/npcm7xx_timer-test.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/qtest/npcm7xx_timer-test.c b/tests/qtest/npcm7xx_timer-test.c
index 43711049ca..58f58c2f71 100644
--- a/tests/qtest/npcm7xx_timer-test.c
+++ b/tests/qtest/npcm7xx_timer-test.c
@@ -465,6 +465,7 @@ static void test_periodic_interrupt(gconstpointer test_data)
int i;
tim_reset(td);
+ clock_step_next();
tim_write_ticr(td, count);
tim_write_tcsr(td, CEN | IE | MODE_PERIODIC | PRESCALE(ps));
--
2.42.0.515.g380fc7ccd1-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] tests/qtest: Fix npcm7xx_timer-test.c flaky test
2023-09-29 0:08 [PATCH v2] tests/qtest: Fix npcm7xx_timer-test.c flaky test Chris Rauer
@ 2023-09-29 6:28 ` Thomas Huth
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Huth @ 2023-09-29 6:28 UTC (permalink / raw)
To: Chris Rauer, kfting, wuhaotsh, lvivier, pbonzini, stefanha
Cc: qemu-arm, qemu-devel
On 29/09/2023 02.08, Chris Rauer wrote:
> 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>
> ---
> tests/qtest/npcm7xx_timer-test.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/qtest/npcm7xx_timer-test.c b/tests/qtest/npcm7xx_timer-test.c
> index 43711049ca..58f58c2f71 100644
> --- a/tests/qtest/npcm7xx_timer-test.c
> +++ b/tests/qtest/npcm7xx_timer-test.c
> @@ -465,6 +465,7 @@ static void test_periodic_interrupt(gconstpointer test_data)
> int i;
>
> tim_reset(td);
> + clock_step_next();
>
> tim_write_ticr(td, count);
> tim_write_tcsr(td, CEN | IE | MODE_PERIODIC | PRESCALE(ps));
Thanks! I'll queue it for my next pull request.
Acked-by: Thomas Huth <thuth@redhat.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-29 6:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-29 0:08 [PATCH v2] tests/qtest: Fix npcm7xx_timer-test.c flaky test Chris Rauer
2023-09-29 6:28 ` Thomas Huth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).