[LTP] [RFC] [PATCH 2/2] tst_timer.h: Make time conversions saturated
Cyril Hrubis
chrubis@suse.cz
Wed Aug 2 10:17:22 CEST 2017
Hi!
> The conversions of struct timeval and struct timespec to us and ms are
> now saturated so instead of overflowing/underflowing long long these
> return LLONG_MAX/LLONG_MIN.
>
> This commit also adds tst_us_to_timespec(), tst_ms_to_timespec() and
> newlib_tests/tst_timer test to assert that the saturated conversion
> actually works.
Argh, I've send a wrong patch, sorry.
But I wanted to ping this one anyway.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list