From: Philippe Mathieu-Daudé Date: Sun, 11 Oct 2020 19:49:18 +0000 (+0200) Subject: tests/qtest: Replace magic value by NANOSECONDS_PER_SECOND definition X-Git-Tag: v5.2.0-rc0~58^2~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f3ccd4f166c12ae2bbdf21af3a16da8a7f16a78;p=thirdparty%2Fqemu.git tests/qtest: Replace magic value by NANOSECONDS_PER_SECOND definition Use self-explicit NANOSECONDS_PER_SECOND definition instead of a magic value. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20201011194918.3219195-5-f4bug@amsat.org> Reviewed-by: Thomas Huth Signed-off-by: Thomas Huth --- diff --git a/tests/qtest/rtc-test.c b/tests/qtest/rtc-test.c index c7af34f6b1b..402ce2c6090 100644 --- a/tests/qtest/rtc-test.c +++ b/tests/qtest/rtc-test.c @@ -292,7 +292,7 @@ static void alarm_time(void) break; } - clock_step(1000000000); + clock_step(NANOSECONDS_PER_SECOND); } g_assert(get_irq(RTC_ISA_IRQ));