Skip to content

Commit f8b0ad1

Browse files
committed
Skip timespec_pack_convert_64bit_sec_max_nano on systems where tv_sec <= 32-bit
1 parent 7ed7af9 commit f8b0ad1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/msgpack_cpp11.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,6 +1188,7 @@ TEST(MSGPACK_TIMESPEC, timespec_object_with_zone_35bit_sec_max_nano)
11881188

11891189
TEST(MSGPACK_TIMESPEC, timespec_pack_convert_64bit_sec_max_nano)
11901190
{
1191+
if (sizeof(decltype(std::declval<timespec>().tv_sec)) <= 4) return;
11911192
std::stringstream ss;
11921193
timespec val1{ std::numeric_limits<decltype(std::declval<timespec>().tv_sec)>::max(), 999999999 };
11931194

0 commit comments

Comments
 (0)