summary refs log tree commit diff stats
path: root/tests/qtest/rtc-test.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-10-11 21:49:18 +0200
committerThomas Huth <thuth@redhat.com>2020-10-13 08:08:55 +0200
commit4f3ccd4f166c12ae2bbdf21af3a16da8a7f16a78 (patch)
tree0ff16687061856e5441c50c29e62a2d3121907ce /tests/qtest/rtc-test.c
parenta0bdf866873467271eff9a92f179ab0f77d735cb (diff)
downloadfocaccia-qemu-4f3ccd4f166c12ae2bbdf21af3a16da8a7f16a78.tar.gz
focaccia-qemu-4f3ccd4f166c12ae2bbdf21af3a16da8a7f16a78.zip
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.c2
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));