From nobody Thu Oct 19 13:37:29 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SB80V212mz4xSHN; Thu, 19 Oct 2023 13:37:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SB80V1X3mz4PZq; Thu, 19 Oct 2023 13:37:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697722650; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=q4hMG7lrr0x4FKTLf/i61B7j5DxBLUnSuGaPdOkDARY=; b=FqdwTN5k+j1qOcLUeLKcAV5RbkRWh3fknvHPNBB0Ie98JvEvmXSrPVZg/l4DOC504p6yeb AJfWIy38JWrqHMDrFWCZ8f53k7QCPJzRafIDHEui3OgQqZbB3NsCdAlyrmKzAO62zDEBxK 5Ne/sUL6nZh0XXv6r4zsWcHqSItWeZ0Jg1V5omx1hRq1KE7OXGNhpTR5OGiDnzhEINVJdC /BOEC7hybuLXT8ydUnwN4Q0Jl9LbgSMm5hYOBvhQYoP3+4JDcxLiNX0dLOZ1g3KtRyxbnC zNSqdrQ2auJ1HtqrdivqmxDA/8xMQ3EuJcsL35iM2jAr63FP3RjilXdIhYdQIQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697722650; a=rsa-sha256; cv=none; b=xi007rkqbqjGIphekw6xlazx+XuO+cxnmETKcVSRDtN24ega5wo/sPvfG8Z6qFlKZ9z2OR rqJ7bSa2b8HQrz9MuHEWQv7eCx3U+1xM7R1BEJPNmrtW4xd6hI6mN40yO5RDjzixsQK4lI xxovitIHQtLNnUKpAc+mtUat9AMFGI40Q/YiZKRLfFZoPxwQ4OFTMvmk0pVnGEPH393lIt cr9S9kdRz/ImvGXFsP+LBkaZbD+Y4pdknTFcggG1/3GmewCkCARWy+w8WGjkM7GSQpp78p uLpEqFhyD3rQ1davvqhJhWqyZwn5IZWIKImySFt3i/7Stb2Kpimj9XKfJ34Sxw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697722650; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=q4hMG7lrr0x4FKTLf/i61B7j5DxBLUnSuGaPdOkDARY=; b=vveNK6cGkRHHBje6zZmj+yGPeCRggTTGBaUoAOpiL1F2E+6gGv8HG+Ce6z0st74dwtl4F5 oJzVpFk5uv+UKJv0DNObC+5EJB08quhz/0HgCV1JjqgVVT8gyJDYPGq6SaQ4K9v4dtqGhf iraQprbjWmAYBKgvNl2NxgFgUazFAk7fFk732oMY8gKheF6mEN9klAzcGE+Z+QwiOeGvkx fgcMQZXcA4JTJ9Jy8/lS2fLlRWPspDEufzfmgi2aW+wkuGHXhSa/5Ef7AzsKfrZ1BSdhT+ USw9GPO0IqCSraBCGjuKcomoVc94dx8h5dz/ukspya/NRCYTryhYrzqIUQ0LVQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SB80V0VTkzrmj; Thu, 19 Oct 2023 13:37:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39JDbTr6094503; Thu, 19 Oct 2023 13:37:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39JDbTv3094500; Thu, 19 Oct 2023 13:37:29 GMT (envelope-from git) Date: Thu, 19 Oct 2023 13:37:29 GMT Message-Id: <202310191337.39JDbTv3094500@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 24fe0cb84d71 - main - ping tests: Fix test on i386 platforms List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 24fe0cb84d71a0e9d648c43f92b5c3a730c3855a Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=24fe0cb84d71a0e9d648c43f92b5c3a730c3855a commit 24fe0cb84d71a0e9d648c43f92b5c3a730c3855a Author: Jose Luis Duran AuthorDate: 2023-10-17 11:35:38 +0000 Commit: Mark Johnston CommitDate: 2023-10-19 13:35:39 +0000 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/ping/tests/test_ping.py b/sbin/ping/tests/test_ping.py index 900fbf45d52d..3c66e6c54c4d 100644 --- a/sbin/ping/tests/test_ping.py +++ b/sbin/ping/tests/test_ping.py @@ -51,7 +51,7 @@ def build_response_packet(echo, ip, icmp, oip_ihl, special): # Build a package with a timestamp of INT_MAX # (time-warped package) payload_no_timestamp = sc.bytes_hex(load)[16:] - load = (b"\xff" * 8) + sc.hex_bytes(payload_no_timestamp) + load = b"\x7f" + (b"\xff" * 7) + sc.hex_bytes(payload_no_timestamp) if special == "wrong": # Build a package with a wrong last byte payload_no_last_byte = sc.bytes_hex(load)[:-2]