From nobody Mon Sep 14 16:58:19 2026 X-Original-To: dev-commits-src-main@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 4hkBDW5gbyz6rNvv for ; Mon, 14 Sep 2026 16:58:19 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hkBDW5BXLz3HVj for ; Mon, 14 Sep 2026 16:58:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789405099; 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=RKK5Fgeen3itC+AAg0yOOp3D3V8jGRu4ar+pOW15c7Y=; b=Yib/7s0mDdGQB0oowokVzP4aR+R/cLXw+BBltLCuQqdmrNF046CSRqnE/LodfmOS19bm89 8MFh1vvup4VuxsNJFcFkXMXdg7UnRTq4LBzad4VFjOZWHaDt3D5s8uUfl4ahOdC5+AIk8v xun6Qo+oVUAqhYcGFaMDWYPWZcGeGlxcu8uWawDLH7DwsrDymudCSzYzzZpVvUem4fFxUh GykHu4Qi4YYziqbEjku/vXUet3hArSl4BsO51q82kBiRHXsG3zZebjP8RwdsQom9ou1Yy9 FA45GbWg0QdEZhYAl/TLbdp3WF5MGMDSc9ujdcGJTIg7kg28GP1a28R6YMDmKQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789405099; b=CGeBiz68dtf6WQ/3Jqmrv4FVfL/U0PDYKldsmEG4fclt8s9y6GiRjY3U5V5MXxE+Mtj2ri gbJrmEYQ2kooZgLw1To7R1j45k3nQGSG4FoMttFNoiqPM+Br8ukeVcoB4O/lCYJ5PahpSh ppcYMevJEN5LjAIriWFY9tZBLoTUVxsWo8c46E/eQOcYfuPFQCYpK0+dFzyQu3av3/I6TH ar5s8CxBnApx79BhdszO4ylsH27jBGtCGNf6osqQeDyVCWPevm1ZMI/5zt6qAf0wNGW4Ta WGCg6WzSjTLV1OV1RjARbfzhg6hFrgK3DSHUllU1CM75kP+/7ZoXnHhksjOd3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789405099; 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=RKK5Fgeen3itC+AAg0yOOp3D3V8jGRu4ar+pOW15c7Y=; b=MRiCEsxabd5sI/rqWSgF3hosrq2R3twRmudEckGNFP52Lm8itdrzyVHIJjmt1YD78AvKj9 pZpZ7tp6V0zIRS4cL3jlJFVkc89os3l4dx1kwpH5OiTJCme3vJKSOK/agaoi6NLDV9xiQs BcTrUl1SnF7QH1NXe5NfWqxTcwdPV3p0mhqLBexAsavD8fGxBgs6+KYJH6695uOUiPbtRv v6Odq/Q3l8t5SxXIs1bNaFy2JrXRg0RA9qKbdW6acnX8P6NHorDuGwg2DeXEeBql8CoL4n zlrw5aFTi2HtxnOOil82LJK6WRZjAXEkh8bdaZ2z4uCVYSatPxYSxxSfrqPosQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hkBDW3frJzLgQ for ; Mon, 14 Sep 2026 16:58:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 42b06 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 14 Sep 2026 16:58:19 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Siva Mahadevan Subject: git: a5dc51aa5f29 - main - tests/truss: xfail accepted ABIs test if linux(4) not implemented List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: siva X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a5dc51aa5f292de732939ef24c757a17dee0ad06 Auto-Submitted: auto-generated Date: Mon, 14 Sep 2026 16:58:19 +0000 Message-Id: <6aa827ab.42b06.388be468@gitrepo.freebsd.org> The branch main has been updated by siva: URL: https://cgit.FreeBSD.org/src/commit/?id=a5dc51aa5f292de732939ef24c757a17dee0ad06 commit a5dc51aa5f292de732939ef24c757a17dee0ad06 Author: Siva Mahadevan AuthorDate: 2026-09-14 16:55:56 +0000 Commit: Siva Mahadevan CommitDate: 2026-09-14 16:57:57 +0000 tests/truss: xfail accepted ABIs test if linux(4) not implemented Split accepted ABIs test into separate case and conditionally xfail it on archs that don't have linux(4) support. This fixes a CI test failure[0]. [0] https://ci.freebsd.org/job/FreeBSD-main-riscv64-test/16706/testReport/usr.bin.truss/truss_test/unknown_syscall/ Reviewed by: dteske MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D59594 --- usr.bin/truss/tests/truss_test.sh | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/usr.bin/truss/tests/truss_test.sh b/usr.bin/truss/tests/truss_test.sh index eb331e21c0f3..967897789a29 100644 --- a/usr.bin/truss/tests/truss_test.sh +++ b/usr.bin/truss/tests/truss_test.sh @@ -209,18 +209,41 @@ unknown_syscall_body() -e match:'matches no known system call' \ truss -o out2 -t 'raed*' cat input + # A number is the way to name a system call by number; '#' is not + # a prefix truss accepts, so it is diagnosed like any other typo. + atf_check -s exit:0 -o inline:"hello\n" \ + -e match:'matches no known system call' \ + truss -o out4 -t '#237' cat input +} + +atf_test_case accepted_abis +accepted_abis_head() +{ + atf_set descr "all ABIs known to truss are accepted by -t filter" +} +accepted_abis_body() +{ + require_truss + printf 'hello\n' > input + # Names of every ABI truss knows are accepted without complaint, # whether or not that ABI is the one being traced here. - for name in read openat linux_write linux_newstat compat11.stat; do + for name in read openat compat11.stat; do atf_check -s exit:0 -o inline:"hello\n" -e empty \ truss -o out3 -t "$name" cat input done - # A number is the way to name a system call by number; '#' is not - # a prefix truss accepts, so it is diagnosed like any other typo. - atf_check -s exit:0 -o inline:"hello\n" \ - -e match:'matches no known system call' \ - truss -o out4 -t '#237' cat input + # sysdecode(3) has Linux names only on amd64, i386, and aarch64 + arch="$(uname -p)" + case "$arch" in + i386|amd64|aarch64) ;; + *) atf_expect_fail "linux(4) support not available on $arch" ;; + esac + + for name in linux_write linux_newstat; do + atf_check -s exit:0 -o inline:"hello\n" -e empty \ + truss -o out3 -t "$name" cat input + done } atf_test_case by_name @@ -391,6 +414,7 @@ atf_init_test_cases() atf_add_test_case by_number atf_add_test_case bad_number atf_add_test_case unknown_syscall + atf_add_test_case accepted_abis atf_add_test_case by_name atf_add_test_case by_pattern atf_add_test_case group