From nobody Mon Sep 14 16:58:19 2026 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 4hkBDd0px6z6rNnt for ; Mon, 14 Sep 2026 16:58:25 +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 4hkBDc62Xpz3Hdp for ; Mon, 14 Sep 2026 16:58:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789405104; 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=MOZ87drbxfVeqy/bqvqIl7LDUJHNZHi3bnV1eA+UxFD86D4K1X2xJdOICeFY3veddqAh3C ylvchkmW1gwfe7C/Fa1RfC+BVg4CJXEeeWFHwFZcK4rIRjeMG2/cuuOcT/uT/FOqlbpBsa R6/y1/LIz+BQXun1D+pThIhYmJRO1xkkWsWFl8oqpMq1yjlIlaKzs2z+6XlLwzcQbOzJBq F6Bi1TBUM/ejOyAOo/qhDMR9/VHhmTdb8jXqMFVKS5gccIijKWa1e1lZqs5dLRoooOdgsG ts7Vr+Ie9keKIndcR0jMg1xAy46khGq3jY1Tt2GjlBFjQOsQjI7bdQpB7MSR4Q== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789405104; b=iGHE1S4UoMJzaa6b+JeKLYHjTz+BlBZSOm0UU6dozrSTnv4PFq1fm0hwVZkmb947X1dzVy Kv4XmQxDxZwuNwebV7HjO07AhTX+JL1HQnf3G93Ro1oe68stTo8hS89/yx40+Ffizxs2tZ iz+Hy+rfuNuSpnKJv6d04AwcJzIJzanMUQZMRQ6z2OhGCLBtxVGlvBNqQFMY6eY3q9cP7g +vwdvZ5xNaYPQTzNvfZZQEcgh6rI73RIMWYFdEFZDqnQicHAG3QYuCiQV/vQ2if6SY9MnC 63G7gMx3rcNSk1IM+5x7BIzPFB4awvHL98IX+PreiKvUwT5cFipqYsFT0oYnkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789405104; 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=Fee5aEH8gbDcY4DBxQfDC1qyoSSIzOtJSgDss3sdV63imjVGJsniS1YJUDW164eS5PaDrc qVqZKTU9jxiQNbB66QM9+pnSXQX2Vlpa1DUZj2OVtspSE99OqSzPnoug9evhhSuajkBzBa rJ0gc1wtHfpA71ffjDZzsoDqkgY69J3n4Bt7w6LDBrCcmPr30HnE1rO70+sssSkAVHUkJs 8/G8z+L0oJdw2Wd/2F5C/1N+7IVfPdwHsfjCOyw7gE3Tq/iNYRKhbtrhOSHHqriCp+hWV/ F//iZwoa7DRCAil2DsWY3y3Vn1ZNgvDWZXpfh+hN5GIVFhioTWHwBx3zDzqM+g== 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 4hkBDc4ZqczLgR for ; Mon, 14 Sep 2026 16:58:24 +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 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 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