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 | |
parent | a0bdf866873467271eff9a92f179ab0f77d735cb (diff) | |
download | qemu-4f3ccd4f166c12ae2bbdf21af3a16da8a7f16a78.zip qemu-4f3ccd4f166c12ae2bbdf21af3a16da8a7f16a78.tar.gz qemu-4f3ccd4f166c12ae2bbdf21af3a16da8a7f16a78.tar.bz2 |
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>
-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 c7af34f..402ce2c 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)); |