From patchwork Thu Oct 17 17:43:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13840546 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C1AAAD3C52A for ; Thu, 17 Oct 2024 17:47:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=64jay4Rb60xjwAi9eIurIZyyaxAC6oPmAKEeqs5A9NY=; b=KsHLqo7bLWKd7mf7WLzYQqqoVQ 8viBxKrPJWe8WBe7WICemc3bfPJiYXjXFm8QJgTbCrZtjSXNveM7djg3020ZKXkFRfACEN1ue1ps/ qG1Zr1/NA6Cw1dghoupfbaFEOjfNR8UK59ZDNGeCSYPqYbZURNT+LCSNL4yZAfxUVSLYhjOYy0+/w AWFTkF0WOfgkQKSEgw9liNCbCgmlCgqsxP8T3xrHBFd2hUDSgihTbPyGaPek9QzWPkxYCvW0Vhfnl fSB+dvISvoDnBqXkRZ60WdJkuYQ+1VmakHrCzC147al49qQLo9Q1j4+efYqgiViN1BkV1c+fxcL2c Kpohgp2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1UaI-0000000Fm0e-2SQ8; Thu, 17 Oct 2024 17:46:50 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1UXF-0000000FlBI-0tGM for linux-arm-kernel@lists.infradead.org; Thu, 17 Oct 2024 17:43:42 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 194145C5DBC; Thu, 17 Oct 2024 17:43:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1F1DC4CECD; Thu, 17 Oct 2024 17:43:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1729187020; bh=S6LzCFAMR6ixXUNBFX+2FpDuOFuVdXdxdGZ3jU5Sv4Q=; h=From:Date:Subject:To:Cc:From; b=O+eU8mM5IPnAnePlpEjhg5/SEh5M+uvIUk7K6wrzZ9ck1pijgdg/YmmzLyoipH4X5 culxeqPrwxzC3WouQ1uIAi3OlhTFoOi/q/nQD0nhk9nkV7bhaBDwH/E3aWJwelbsca ClPQVIS1A/YCmtXrVpL6pul6t5OWQQRvpWnIek01eXRHLYDALKP0/oG/YVImsG5Yu1 lLK0tLazHTuF/sOeff4b/jjy6na7kI1NnmWL6kAoD4YZNKZ5txVi+KqiQ2NdgdoVRr sRVKFiqktHuSdoO6YBYKSZ51UNTR2DsIEDchIUrGPZdqXAlYlbESMJfyb+OFah9wCs GSNMF4d2ecuHw== From: Mark Brown Date: Thu, 17 Oct 2024 18:43:31 +0100 Subject: [PATCH] kselftest/arm64: Fail the overall fp-stress test if any test fails MIME-Version: 1.0 Message-Id: <20241017-arm64-fp-stress-exit-code-v1-1-f528e53a2321@kernel.org> X-B4-Tracking: v=1; b=H4sIAMJMEWcC/x3MQQqDMBBG4avIrB1I0mCpVxEXNvljZ1GVGRFBv HtDl9/ivYsMKjDqm4sUh5isS4VvG0qfaZnBkqspuBC980+e9NtFLhvbrjBjnLJzWjP45QqCzym +04NqvymKnP/3MN73D262IztrAAAA X-Change-ID: 20241017-arm64-fp-stress-exit-code-90fe21dc4bc3 To: Catalin Marinas , Will Deacon , Shuah Khan Cc: linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-9b746 X-Developer-Signature: v=1; a=openpgp-sha256; l=1065; i=broonie@kernel.org; h=from:subject:message-id; bh=S6LzCFAMR6ixXUNBFX+2FpDuOFuVdXdxdGZ3jU5Sv4Q=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBnEUzJfMIUuE8fGYh7rfezGvYZWqHqhQzdtV1C9QXq jE/FgP+JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZxFMyQAKCRAk1otyXVSH0DWoB/ kBJ2XzZEefjkyY1KnAt2UPjTFf4mR+8jnzwV6MW4ueY7jymz/7eY8KMREu4GbKjCltz4nD71Dv14WK Gf+nDWsfzU5Lqf5N3J3PzorJllgXqQYNXg2mRIVt+A3ebgRNlHOxhMd0QdVL5lZSVJulAgwESzt1Qb SuXURa4sA0/XVrUadpLrvlAeKX06XyxPCM8mJvKKdFmnlRvVzGBDCKeSzthRy8eo669e9i+1s+ju7d Ts5+ixiR1qq+LjvmSP/NoE/jhwTa3A6cfTuxwPOHwlU9mDnJD1AeiBD94gcXIY/bsne3s87DKMIQxu r8pTqI2RITespBnoXmrdxm77GfMI2e X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241017_104341_326982_634CEEAE X-CRM114-Status: UNSURE ( 9.37 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Currently fp-stress does not report a top level test result if it runs to completion, it always exits with a return code 0. Use the ksft_finished() helper to ensure that the exit code for the top level program reports a failure if any of the individual tests has failed. Signed-off-by: Mark Brown --- tools/testing/selftests/arm64/fp/fp-stress.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- base-commit: 8e929cb546ee42c9a61d24fae60605e9e3192354 change-id: 20241017-arm64-fp-stress-exit-code-90fe21dc4bc3 Best regards, diff --git a/tools/testing/selftests/arm64/fp/fp-stress.c b/tools/testing/selftests/arm64/fp/fp-stress.c index faac24bdefeb9436e2daf20b7250d0ae25ca23a7..e62c9dbad5010234d70b477cf8c52ba0b312910e 100644 --- a/tools/testing/selftests/arm64/fp/fp-stress.c +++ b/tools/testing/selftests/arm64/fp/fp-stress.c @@ -651,7 +651,5 @@ int main(int argc, char **argv) drain_output(true); - ksft_print_cnts(); - - return 0; + ksft_finished(); }