zephyr/tests/lib
Peter A. Bigot 55ace13c32 lib/timeutil: avoid implementation-defined behavior
The algorithm for converting broken-down civil time to seconds in the
POSIX epoch time scale would produce undefined behavior on a toolchain
that uses a 32-bit time_t in cases where the referenced time could not
be represented exactly.

However, there are use cases in Zephyr for civil time conversions
outside the 32-bit representable range of 1901-12-13T20:45:52Z through
2038-01-19T03:14:07Z inclusive.

Add new API that specifically returns a 64-bit signed seconds count, and
revise the existing API to detect out-of-range values and convert them
to a diagnosible error.

Closes #18465

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2019-09-19 20:49:51 -04:00
..
base64 tests: base64: add tests for error paths 2019-07-30 10:14:41 -07:00
c_lib libc: minimal: add strspn and strcspn support 2019-07-31 09:22:49 -07:00
crc tests: crc: convert to regular test case 2019-07-06 00:31:04 +02:00
fdtable tests: fdtable: add tests 2019-07-22 16:36:15 -07:00
gui/lvgl tests: gui: Added tests for LVGL glue logic 2019-09-16 16:08:36 -05:00
json tests: json: improve code coverage 2019-07-02 22:56:53 -04:00
mem_alloc tests: exclude twr_ke18f platform from several user mode tests 2019-09-03 16:44:22 +02:00
rbtree riscv: add a qemu_riscv64 board 2019-08-09 09:11:45 -05:00
ringbuffer cleanup: include/: move ring_buffer.h to sys/ring_buffer.h 2019-06-27 22:55:49 -04:00
sprintf tests: lib: sprintf: filter-out MCIMX7_M4 platform 2019-08-16 17:35:04 +02:00
timeutil lib/timeutil: avoid implementation-defined behavior 2019-09-19 20:49:51 -04:00