tests/qtest: don't step clock at start of npcm7xx periodic IRQ test
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 7 Feb 2025 15:30:58 +0000 (15:30 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 10 Feb 2025 13:47:58 +0000 (13:47 +0000)
Until there are timers enabled the semantics of clock_step_next() will
fail. Since d524441a36 (system/qtest: properly feedback results of
clock_[step|set]) we will signal a FAIL if time doesn't advance.

Reviewed-by: Hao Wu <wuhaotsh@google.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20250207153112.3939799-4-alex.bennee@linaro.org>

tests/qtest/npcm7xx_timer-test.c

index 58f58c2f71b0bcfb9f6e33fd03fa69d6f4af3d5e..43711049ca747d509cc0ca53d065a0f81694294a 100644 (file)
@@ -465,7 +465,6 @@ 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));