From 8f78a8fdc07f22393ecf9f3d51595f0af5827feb Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 19 May 2020 03:32:09 -0400 Subject: [PATCH] fade tests: don't use CLOCK_MONOTONIC_RAW --- tests/fade.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fade.cpp b/tests/fade.cpp index 7464eb499..84e06cd08 100644 --- a/tests/fade.cpp +++ b/tests/fade.cpp @@ -9,7 +9,7 @@ auto pulser(struct notcurses* nc, struct ncplane* ncp __attribute__ ((unused)), return -1; } struct timespec now; - clock_gettime(CLOCK_MONOTONIC_RAW, &now); + clock_gettime(CLOCK_MONOTONIC, &now); auto delta = timespec_to_ns(&now) - timespec_to_ns(pulsestart); if(delta > 500000000){ return 1; @@ -73,7 +73,7 @@ TEST_CASE("Fade") { ncplane_set_fg(n_, 0xffd700); CHECK(0 < ncplane_printf_aligned(n_, dimy - 1, NCALIGN_CENTER, "pulllllllse")); struct timespec pulsestart; - clock_gettime(CLOCK_MONOTONIC_RAW, &pulsestart); + clock_gettime(CLOCK_MONOTONIC, &pulsestart); CHECK(0 < ncplane_pulse(n_, &ts, pulser, &pulsestart)); }