mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-14 14:01:48 +03:00
* lib/timespec-add.c (timespec_add): * lib/timespec-sub.c (timespec_sub): Work even if time_t is narrower than int (a theoretical possibility). Redo code for a bit more clarity. * lib/timespec-sub.c (timespec_sub): Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec. * modules/timespec-tests, tests/test-timespec.c: New files.
17 lines
196 B
Plaintext
17 lines
196 B
Plaintext
Files:
|
|
tests/test-timespec.c
|
|
tests/macros.h
|
|
|
|
Depends-on:
|
|
dtotimespec
|
|
intprops
|
|
stdbool
|
|
timespec-add
|
|
timespec-sub
|
|
|
|
configure.ac:
|
|
|
|
Makefile.am:
|
|
TESTS += test-timespec
|
|
check_PROGRAMS += test-timespec
|