From nobody Fri Apr 26 15:34:02 2024 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 4VQxbG4bbRz5HQYq; Fri, 26 Apr 2024 15:34:02 +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 4VQxbG44xMz4jMf; Fri, 26 Apr 2024 15:34:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714145642; 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=2TsmtqaUqfaY8nbbGGUK75IvAOdEuXeOHJCjUyHlSyw=; b=I/gBo5bQMrVukznvjXjcV270UI0S18O2HTMA3MGmhVoPNaH9gdgBMxthY/9e503mycd/9S 7nsHQesCOTMjLUprHXT043IN+6OlbQ2J76hxpYUrXq/YUFZjNuLwRiZ4kF9UV5z07gEPrC CFBX2h4V2p8jTtMDjJdOrdi+GI2Az1VFJdhhyOwirn1g8I6+uscYSwR6Z9gBt6RBLDMv64 rmI6kEaEdOobGjXj9V4is1jcvkPbKV6NVJ6ileP/wrsf6+lo0f5DygMP1D3iDA5IC5vJ3S +MNGwleUKS9ABAGOh67LdV95AMxUCv2QZiApIk2KtuPvVT0EoWKmzD4ePwAdkQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714145642; a=rsa-sha256; cv=none; b=y34VnJbZgJaJrdlfLhm8xtBLIjHJe/qVUi7vvO9skVGHMglj6pka20TqrpsHsyFTfkV6ka jhda9pGsIpi2QGatJ8MJno/xywoZfNdwKTgG1/m0jJ1RkPcX0CFT6gnqJTXk7mRCy+XW3S 5Aty8yG3HYOMPD0+qZRyiqtoaSwkHOw7dx6tw4ILocsKfvgWvSP03R8W4Gluha3gQY2VTd IyOaniaGE2kfB0jPp0C8jGadPeaF118cTf9hBGXJ7XoOLCiTHF/R1P5uqMHwLKthGEvH4O zUTf0aVsET7z+MiX0ARH2MIuywzY/09Aqbmxumpb4t2Q4Csrs873hFfis78zMw== 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=1714145642; 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=2TsmtqaUqfaY8nbbGGUK75IvAOdEuXeOHJCjUyHlSyw=; b=tMvrDRTyAZrm8w4k/XEjXoUQHv/VMin9NJBiZw/KrLtFaOKC1ULGk//KZALjPnxjLYk4dC QthOTWyJePmWlnLcKoCC5aeCCnMtaNl0bFhWeIkHARUMDp/tLIl9n577IfpFFravnkwsqu IOrHC9OpanHwH9/tzBp032YcHmgccMHmNT9ctlH8kOpDjiPrFLEiFVWfnNimEepMcb4ri6 4ac/2ntta2vjCPvDuVEv3QMUFprU94JbAcTYcyFlUBfe53U9CjlosbaUGiSkJurQch2HPB SDCKpyXh5ux5Zf5s0Eg5xGZa6O6CGAb3uw0G1/xKHKyb+5ch8PP1zMqRkq359g== 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 4VQxbG3h8pzpPT; Fri, 26 Apr 2024 15:34:02 +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 43QFY2vc062434; Fri, 26 Apr 2024 15:34:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43QFY2qb062431; Fri, 26 Apr 2024 15:34:02 GMT (envelope-from git) Date: Fri, 26 Apr 2024 15:34:02 GMT Message-Id: <202404261534.43QFY2qb062431@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 7b390cb63689 - main - date: Fix tests by initializing timespec structure 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7b390cb636899582243e4daa8edbdb30d686d9fb Auto-Submitted: auto-generated The branch main has been updated by 0mp: URL: https://cgit.FreeBSD.org/src/commit/?id=7b390cb636899582243e4daa8edbdb30d686d9fb commit 7b390cb636899582243e4daa8edbdb30d686d9fb Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2024-04-26 15:19:18 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2024-04-26 15:32:57 +0000 date: Fix tests by initializing timespec structure The tests related to nanosecond support were failing on amd64 due to uninitialized timespec structure. Fixes: eeb04a736cb9 date: Add support for nanoseconds Reviewed by: markj Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D44975 --- bin/date/date.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/date/date.c b/bin/date/date.c index ccd72cb98445..718c94601dd6 100644 --- a/bin/date/date.c +++ b/bin/date/date.c @@ -96,6 +96,8 @@ main(int argc, char *argv[]) (void) setlocale(LC_TIME, ""); rflag = 0; Iflag = jflag = Rflag = 0; + ts.tv_sec = 0; + ts.tv_nsec = 0; while ((ch = getopt(argc, argv, "f:I::jnRr:uv:z:")) != -1) switch((char)ch) { case 'f':