tests/qtest: Fix npcm7xx_timer-test.c flaky test
PATCH 1/1 tests/qtest: Fix npcm7xx_timer-test.c flaky test
Signed-off-by Chris Rauer <[email protected]>
--- tests/qtest/npcm7xx_timer-test.c | 1 + 1 file changed, 1 insertion(+)
tests/qtest/npcm7xx_timer-test.c +1 -0
@@ -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));
Signature · 1 line
2.42.0.515.g380fc7ccd1-goog
On 28/09/2023 05.45, Chris Rauer wrote:
Could you please add a proper patch description how this is fixing the issue?
Thanks,
Thomas
Quoted 18 lines
Signed-off-by Chris Rauer <[email protected]>--- tests/qtest/npcm7xx_timer-test.c | 1 + 1 file changed, 1 insertion(+)tests/qtest/npcm7xx_timer-test.c +1
-0@@ -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));
Ack. will send out v2.
Quoted 31 lines · Thomas Huth
On 28/09/2023 05.45, Chris Rauer wrote:
Could you please add a proper patch description how this is fixing the issue?
Thanks,
ThomasReview
Quoted 7 lines
Signed-off-by Chris Rauer <[email protected]>--- tests/qtest/npcm7xx_timer-test.c | 1 + 1 file changed, 1 insertion(+)(quoted diff) +0
-0
b/tests/qtest/npcm7xx_timer-test.ctests/qtest/npcm7xx_timer-test.c static void test_periodic_interrupt(gconstpointer
Quoted 4 lines
index
43711049ca..58f58c2f71100644tests/qtest/npcm7xx_timer-test.c +0
-0@@ -465,6 +465,7 @@ static void test_periodic_interrupt(gconstpointer
test_data)Quoted 7 lines
tests/qtest/npcm7xx_timer-test.c +1
-0int i;tim_reset (td); +clock_step_next ();tim_write_ticr (td, count);tim_write_tcsr (td,CEN |IE |MODE_PERIODIC |PRESCALE (ps));