From: Rusty Russell Date: Mon, 31 Oct 2016 00:30:57 +0000 (+1030) Subject: time: test/run-monotonic backwards timemono_between fix. X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=b52bd763948edd051b769e249c4580352f0057ab;hp=a7f2b2c4d3e62cbbcb71628363e39f6730fd8f5e time: test/run-monotonic backwards timemono_between fix. Signed-off-by: Rusty Russell --- diff --git a/ccan/time/test/run-monotonic.c b/ccan/time/test/run-monotonic.c index c9912a73..2da492d4 100644 --- a/ccan/time/test/run-monotonic.c +++ b/ccan/time/test/run-monotonic.c @@ -18,7 +18,7 @@ int main(void) t3.ts.tv_sec = 1; 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(timemono_add(t1, t3).ts.tv_sec == t1.ts.tv_sec + 1);