diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2020-10-11 21:49:18 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2020-10-13 08:08:55 +0200 |
commit | 4f3ccd4f166c12ae2bbdf21af3a16da8a7f16a78 (patch) | |
tree | 0ff16687061856e5441c50c29e62a2d3121907ce /tests/qtest/rtc-test.c | |
parent | a0bdf866873467271eff9a92f179ab0f77d735cb (diff) |
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é <f4bug@amsat.org>
Message-Id: <20201011194918.3219195-5-f4bug@amsat.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qtest/rtc-test.c')
-rw-r--r-- | tests/qtest/rtc-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qtest/rtc-test.c b/tests/qtest/rtc-test.c index c7af34f6b1..402ce2c609 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)); |