]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ping tests: Fix test on i386 platforms
authorJose Luis Duran <jlduran@gmail.com>
Tue, 17 Oct 2023 11:35:38 +0000 (11:35 +0000)
committerMark Johnston <markj@FreeBSD.org>
Thu, 19 Oct 2023 13:35:39 +0000 (09:35 -0400)
commit24fe0cb84d71a0e9d648c43f92b5c3a730c3855a
treec138fe7a8882db3133906c8d42fa5d2b5cf3c120
parentfabf705f4b5aff2fa2dc997c2d0afd62a6927e68
ping tests: Fix test on i386 platforms

Actually use INT_MAX (0x7fffffff), not UINT_MAX (0xffffffff) to avoid
overflowing time_t and missing the test.

Reported by: Jenkins
Reviewed by: markj
Fixes: 5b8af90fe332 ("ping: Add ATF-Python tests")
Pull Request: https://github.com/freebsd/freebsd-src/pull/874
Differential Revision: https://reviews.freebsd.org/D42268
sbin/ping/tests/test_ping.py