Fix timespec_from_nsec test for 32-bit time_t
authorJon Turney <jon.turney@dronecode.org.uk>
Mon, 16 Sep 2019 14:25:33 +0000 (15:25 +0100)
committerAdam Jackson <ajax@redhat.com>
Tue, 17 Sep 2019 16:17:53 +0000 (12:17 -0400)
commitdd1dba80b9ee74ec8b90761285a8262e374bf8ef
tree4753e482e36bc5b2c8aabbb8d071b6f03c0698d2
parent631255387f0469910db99eccbfbaa63345425739
Fix timespec_from_nsec test for 32-bit time_t

Since struct timespec's tv_sec member is of type time_t, adjust the
expected value to allow for the truncation which will occur with 32-bit
time_t.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
src/util/tests/timespec/timespec_test.cpp