system/qtest: properly feedback results of clock_[step|set]
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 8 Jan 2025 12:10:39 +0000 (12:10 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Fri, 10 Jan 2025 11:18:32 +0000 (11:18 +0000)
commitd524441a3610ba33c12b641c00d8e6886d411aad
treef420d9ab8ea8553f9dbd70b17857ddead2fce6c7
parent92cb8f8bf67e89254b0e4167521675eb6cd84981
system/qtest: properly feedback results of clock_[step|set]

Time will not advance if the system is paused or there are no timer
events set for the future. In absence of pending timer events
advancing time would make no difference the system state. Attempting
to do so would be a bug and the test or device under test would need
fixing.

Tighten up the result reporting to `FAIL` if time was not advanced.

Reviewed-by: Fabiano Rosas <farosas@suse.de>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2687
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20250108121054.1126164-18-alex.bennee@linaro.org>
system/qtest.c