Commit b52bd763 authored by Rusty Russell's avatar Rusty Russell

time: test/run-monotonic backwards timemono_between fix.

Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent a7f2b2c4
...@@ -18,7 +18,7 @@ int main(void) ...@@ -18,7 +18,7 @@ int main(void)
t3.ts.tv_sec = 1; t3.ts.tv_sec = 1;
t3.ts.tv_nsec = 0; t3.ts.tv_nsec = 0;
ok1(time_less(timemono_between(t1, t2), t3)); ok1(time_less(timemono_between(t2, t1), t3));
ok1(time_less(timemono_since(t1), t3)); ok1(time_less(timemono_since(t1), t3));
ok1(timemono_add(t1, t3).ts.tv_sec == t1.ts.tv_sec + 1); ok1(timemono_add(t1, t3).ts.tv_sec == t1.ts.tv_sec + 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment