From nobody Fri Nov 3 13:31:09 2023 X-Original-To: dev-commits-src-branches@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 4SMM8G14kLz509F2; Fri, 3 Nov 2023 13:31:10 +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 4SMM8G0ZNVz4cyL; Fri, 3 Nov 2023 13:31:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699018270; 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=dCftJa9EXb/rvkaKzcPfSVh3t9Bu4rj4kktwTrXr4c4=; b=jjPQR2qaAIZi/gry0sJ8Oat95LPVCfbNoO71tIxL8ErXXOkCFh88/N/N8GT98AHPEXg+dM Pv8tFf4wDQanZFhyxWfU6V2RXm1C5kho3eZcfWrJk+CJPjLJkz6WSY17PD2nh51Y1BZMGu iTRvf8yAQlzQhEE7TDPa6uoJgnzH5qbTRN/SJ23luqCivc0MQTkeGSvkhrQ+VQ8/agL3IE HHMsuNsOyqWj/gWvCgRJe2KAASJxz6hOQ9ibjnmgWUUpslNz80tEdbUB4pPKy2ea/X+HFN V9O7gbNPPdor9mL2ebtpVYLByXU4h3hmj52BOoWa1C3g8uREDrUYcT17C8GfJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699018270; 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=dCftJa9EXb/rvkaKzcPfSVh3t9Bu4rj4kktwTrXr4c4=; b=XEXcd5GMuDFsrfJzSSbkA4UzmSrgwXhojygF7wmmVbEw8wM6xlQycLsogboMMOtT3EvvcV hXNigbSfbuseXixNIQxY240u5Wn8D7LBt1V3TPnsTC1ySq87BkYkOJzEQJKgNGuedQ5Nsf V/idBZ1k1D5BBwjBGiOjopyn7fFgO+A0D1swHFO7/geXK3tUv9bXvR/ythTqYk5d1JtExg qteOdOSBWYQzR9822BkEYIKbWxdo9ReqbgxqpiTamLvHQVAoopH89cg1K1xdHRgyn42p6g 4B2UV4dTM/wrRxILBRXYSeV+1T0vXNBNM7H1/69qQMmOJu6cFtLK/HxkkMAxqQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699018270; a=rsa-sha256; cv=none; b=mH21pEup1TZE4NbdbYKKnXYhCEnWg/UA1mgs+3Q19eekKMD73kW1pU/4h8IOdyhAGcLluM Ntg6vQnqFFQjsN4+P4iB91pAwBl9xmnyekEdQX+32ojO8rno+aRCk2a8oZ20iB5XmHFyuf nrqBNz6wGLHQxXjFfJZkLJCytBybFnpr0UksAgqwRH0oXQYYPZxlfJQed6awL4Kz3Ld2Wv BsYuZAk25eIpjNGZOyE8i4P5fmIHeIrDHuDlgZotZWz4ZipX4mssHFa2h/oZ+xZ+UDnaxZ I/pXmjG0wqdCp9CTriqVEf+eiMH8/KEBdgqInB+EsJz7VXHp7dvTr71D+6CMLw== 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 4SMM8F6lWZz5p; Fri, 3 Nov 2023 13:31:09 +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 3A3DV9FI025240; Fri, 3 Nov 2023 13:31:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A3DV9TT025237; Fri, 3 Nov 2023 13:31:09 GMT (envelope-from git) Date: Fri, 3 Nov 2023 13:31:09 GMT Message-Id: <202311031331.3A3DV9TT025237@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: f790f2809202 - stable/14 - ping tests: Fix test on i386 platforms List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/14 X-Git-Reftype: branch X-Git-Commit: f790f2809202389eee7750eb160491d44449d3ef Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=f790f2809202389eee7750eb160491d44449d3ef commit f790f2809202389eee7750eb160491d44449d3ef Author: Jose Luis Duran AuthorDate: 2023-10-17 11:35:38 +0000 Commit: Mark Johnston CommitDate: 2023-11-03 13:30:58 +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 (cherry picked from commit 24fe0cb84d71a0e9d648c43f92b5c3a730c3855a) --- 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 26a69b62f8fb..b501b8a606bf 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]