Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ping tests: Fix test on i386 platforms #874

Closed
wants to merge 1 commit into from

Conversation

jlduran
Copy link
Contributor

@jlduran jlduran commented Oct 19, 2023

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

Reported by: Jenkins
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D42268


cc/ @markjdb

@markjdb
Copy link
Member

markjdb commented Oct 19, 2023

Technically the problem isn't with 32-bit platforms, just i386. 32-bit arm has a 64-bit time_t.

@jlduran
Copy link
Contributor Author

jlduran commented Oct 19, 2023

Technically the problem isn't with 32-bit platforms, just i386. 32-bit arm has a 64-bit time_t.

Ahhh. Let me change the commit message then. As we only care for i386 and armv7.

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

Reported by:	Jenkins
Reviewed by:	markj
Differential Revision: https://reviews.freebsd.org/D42268
@jlduran jlduran changed the title ping tests: Fix test on 32-bit platforms ping tests: Fix test on i386 platforms Oct 19, 2023
@markjdb
Copy link
Member

markjdb commented Oct 19, 2023

Merged!

@markjdb markjdb closed this Oct 19, 2023
freebsd-git pushed a commit that referenced this pull request Oct 19, 2023
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:		5b8af90 ("ping: Add ATF-Python tests")
Pull Request:	#874
Differential Revision: https://reviews.freebsd.org/D42268
@emaste emaste added the merged label Oct 19, 2023
@jlduran jlduran deleted the fix-32-bit-ping-test branch October 26, 2023 21:45
@jlduran
Copy link
Contributor Author

jlduran commented Nov 3, 2023

@markjdb
Copy link
Member

markjdb commented Nov 3, 2023

May I kindly request an MFC to stable/14: Reported by: Jenkins https://ci.freebsd.org/view/Test/job/FreeBSD-stable-14-i386-test/150/testReport/junit/sbin.ping.test_ping/py/TestPing__test_pinger__0_0_special_warp_/

Fixed, thank you.

freebsd-git pushed a commit that referenced this pull request Nov 3, 2023
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:		5b8af90 ("ping: Add ATF-Python tests")
Pull Request:	#874
Differential Revision: https://reviews.freebsd.org/D42268

(cherry picked from commit 24fe0cb)
bsdjhb pushed a commit to bsdjhb/cheribsd that referenced this pull request Feb 24, 2024
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:		5b8af90 ("ping: Add ATF-Python tests")
Pull Request:	freebsd/freebsd-src#874
Differential Revision: https://reviews.freebsd.org/D42268
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants