From nobody Wed Oct 23 17:31:16 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 4XYbgS6zNFz5ZT4w; Wed, 23 Oct 2024 17:31:16 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XYbgS68TSz54R3; Wed, 23 Oct 2024 17:31:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729704676; 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=LuS2Geq42/PBDWP4ATooRbzlnyiz485e+amp/einW1M=; b=PV8PzwBbF2i56ibJkkUg7DMHnCOlqCnHkedlW9Fmg7EvndqHhjwAm8OgV3vx16Qzye9fTI fC00sNtPwcsbJ0q7tpKL05oEQspaQpbg1QETTMFZ5gRDzhaUjpIM4sixVux2xDDikypaxK qFyNKztS9Q9bY9ghVNFgd0P//Tb2dEajSJ9nokW2j6+aU7UjPAY6p8o3/kmDYTITa25HI1 XhWfHwdsi4aN2Z/K4a8n4Hh+vPOZcn4surkq/OtcD49b9iyJZemHvHTMvtNYJhLftsknKY /snRumOof801BpvZJvU1skyoJuSqKEwEMPyQgbS/QXHJhRD0d4IAkt5rvtI5Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729704676; 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=LuS2Geq42/PBDWP4ATooRbzlnyiz485e+amp/einW1M=; b=U+tGs+8CQVLylpLCqwSNJQkUQU6RzFY67P3QaFxN9i9EdjIElJA2cfo4y+XSGfF6JWKe71 emGFNtqsC6B0cQyFmY1wBjbVKhYTJIFYkbws/Gpua3G+djgZmkezIWgfkaH08NDTn3I71l sTRnbja9O4o52UHVblLE4Rj9kEFkqXys78CR+J/ZHk6cGObbvRtV9ASO1GrLQmNWvATVvR dDF5islgtIAwVZfyxL7yutbn7phDniJQR1xdWgTT61CHpDn39e5RzVFJ2Y0JLqfkU3VHt9 dSoX8p+nUZYWvzAHrozRXS4PT9b6lT4uPpuKvkxa9CbXM//TmHnVfHq2BIWoOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729704676; a=rsa-sha256; cv=none; b=XVWPPTPM7Ic4BFqn5UqV9iBxA1Hx00Ff3AK7igoiHzuuqGcjvUc1UY/ViQdSf8VYP2B/J2 MJYTdZxo3VqoQrO4OfYSr7bqkTjjea3Rf4n2xGO1vyD4geZ5XCjK6F2WQvNwhKZWkvsvwt ml5mNL5Gl8lyP4IXMVfm43IvMjdpkFhaGHuDwKnds8Uw9XI+rYAPPcUdJOsxxCp+NQyAKQ OJbNOwIUOMMvrreFTt4QSxfIjpI1ZhAu5NPzZfGN7cI4UCoiUciJaXomT8CItg9GGTqCAG E+NLWpn4tp+HpSrMy+gXgJiE83d9tNL6l3WB09LLJntIlqPuzh2PmdULeLBAbw== 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 4XYbgS5jv0z16xw; Wed, 23 Oct 2024 17:31:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49NHVGie061061; Wed, 23 Oct 2024 17:31:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49NHVGRJ061058; Wed, 23 Oct 2024 17:31:16 GMT (envelope-from git) Date: Wed, 23 Oct 2024 17:31:16 GMT Message-Id: <202410231731.49NHVGRJ061058@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 6b9f7133aba4 - main - libc: Add one more check in new fmemopen test 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6b9f7133aba44189d9625c352bc2c2a59baf18ef Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=6b9f7133aba44189d9625c352bc2c2a59baf18ef commit 6b9f7133aba44189d9625c352bc2c2a59baf18ef Author: Ed Maste AuthorDate: 2024-10-23 17:28:55 +0000 Commit: Ed Maste CommitDate: 2024-10-23 17:29:34 +0000 libc: Add one more check in new fmemopen test Reported by: jrtc27 Fixes: 0953460ce149 ("libc: fix access mode tests in fmemopen(3)") --- lib/libc/tests/stdio/fmemopen2_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libc/tests/stdio/fmemopen2_test.c b/lib/libc/tests/stdio/fmemopen2_test.c index 4a7242ee6b2f..a558ff3515e9 100644 --- a/lib/libc/tests/stdio/fmemopen2_test.c +++ b/lib/libc/tests/stdio/fmemopen2_test.c @@ -296,6 +296,7 @@ ATF_TC_BODY(test_rdonly_wronly, tc) fclose(fp); fp = fmemopen(buf_orig, sizeof(buf), "w"); + ATF_REQUIRE(fp != NULL); sz = fread(buf, sizeof(buf), 1, fp); ATF_REQUIRE(sz == 0); ATF_REQUIRE(errno == EBADF);