X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftime%2Ftest%2Frun-monotonic.c;h=787ca6820b4c5c1976cdcaae526475eb506fd48f;hp=ed70f3dbb5bddc19e15ed460c250f43fac236456;hb=c0b655441804c0edace4f539fb9008b315eb1bd8;hpb=becfc7c324d821fe135a1ad843c596399ed5068a diff --git a/ccan/time/test/run-monotonic.c b/ccan/time/test/run-monotonic.c index ed70f3db..787ca682 100644 --- a/ccan/time/test/run-monotonic.c +++ b/ccan/time/test/run-monotonic.c @@ -7,7 +7,7 @@ int main(void) struct timemono t1, t2; struct timerel t3; - plan_tests(2); + plan_tests(3); /* Test time_mono */ t1 = time_mono(); @@ -19,6 +19,7 @@ int main(void) t3.ts.tv_nsec = 0; ok1(time_less(timemono_between(t1, t2), t3)); + ok1(time_less(timemono_since(t1), t3)); return exit_status(); }