tests/qtest: Replace magic value by NANOSECONDS_PER_SECOND definition
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 11 Oct 2020 19:49:18 +0000 (21:49 +0200)
committerThomas Huth <thuth@redhat.com>
Tue, 13 Oct 2020 06:08:55 +0000 (08:08 +0200)
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>
tests/qtest/rtc-test.c

index c7af34f6b1b2c124925174e5a8e6a9244d98c139..402ce2c60907233820df7f0c82373b361461d3fe 100644 (file)
@@ -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));