zephyr/tests
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
..
application_development tests: cxx: Enable exceptions 2019-09-19 09:26:42 -05:00
arch tests: arm: fix arm_irq_vector_table to plug rtc_isr for CC13x2/CC26x2 2019-09-19 13:43:10 -05:00
benchmarks userspace: Support for split 64 bit arguments 2019-09-12 11:31:50 +08:00
bluetooth Bluetooth: GATT: Add support to setting permission on CCCD 2019-09-19 21:12:39 +03:00
boards tests: boards: board_shell: Activate CAN shell 2019-07-29 10:27:54 +03:00
booting/stub license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
cmsis_rtos_v1 tests/cmsis_rtos_v1: relax timing check a bit 2019-08-02 12:47:41 +02:00
cmsis_rtos_v2 tests: cmsis_v2: Put/Get msg in queue instead of u32_t 2019-09-19 09:33:03 -05:00
crypto kernel: lib: Add convert functions for hex strings and binary arrays 2019-07-16 12:44:18 +02:00
drivers tests: degu_evk: add adc test 2019-09-19 12:06:56 -05:00
kernel tests/kernel/sleep: relax upper bound for TI CC13X2/CC26X2 RTC 2019-09-19 13:43:10 -05:00
lib lib/timeutil: avoid implementation-defined behavior 2019-09-19 20:49:51 -04:00
misc cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
net tests: net: shell: Add some simple tests for net-shell 2019-09-17 22:41:56 +08:00
posix tests/posix/common: restructure to eliminate casts 2019-09-15 11:33:47 +08:00
shell shell: add test for new built-in command 2019-05-24 11:04:42 +02:00
subsys usb: tests: Pass correct lengths to hexdump in usb bos test 2019-09-16 15:33:10 -05:00
unit tests: crc: convert to regular test case 2019-07-06 00:31:04 +02:00
ztest subsys/testsuite: make tc_util overridable 2019-09-17 07:11:33 +08:00