From nobody Tue Sep 29 06:11:02 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49ACE4499B5; Tue, 11 Aug 2026 16:14:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786464850; cv=none; b=samsrFLtosdRJC7v+nU4oMbSmehdMvsn0zjro2a0wI4c1mJNHB2qDXMNcvZpP9Jqei4dZnwpE0MkRt3kjQwUEMmM/k6LGUrIUmanQENVtG0lzd3upx7FkshhzRZry6oIu2hPyfVz74iHIFiudznEfOTnQpGyQaJlSBc80+Ly1AE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786464850; c=relaxed/simple; bh=tkA/4/Scuv4Ft/qnsv93pOpx3VMClgfmyaII558sW5c=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=IgjL5CzWVaSuKWGXBHlgsjleQv8OmKFQKUIh+ztCviuFGear0p0aXjYQmSn7PjnRqFx0LMwtFkN2z2ypRhurrIK25R1MuMpnEoQHXesOLhRAMbr+CWtrH8qIDD0XZjUCzok7K+7WwAoACEYUhyK+Ub2+7dYUchPSCo91F1iCKos= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=gd4sevx7; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=pKrCpWf5; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="gd4sevx7"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="pKrCpWf5" Date: Tue, 11 Aug 2026 16:14:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1786464846; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KwCNaXyT/GEMu3jUGbeIf8xZswTF8wKgzmEY7lUHDi4=; b=gd4sevx7JUG65DzMtHCBp75TPrLOKggGc7TOfCb/37HqOojw89BzIZdJ0dfC7T+xeDJMbz Ttq8S70KxvVM4TLTj/F54TGqOF8648RTwetDyPw0gQ70pvRr+EuG2z3FYU2GHzrTmKBQew V6EsJWPhtmSZD1Wu2AQSlrgcJLz2kqdRtIQ8AfXQJ1I7a/arkCM7trQbHyeJW99jeoWK11 uPiEZ2Dmt0EqMUs65Ajy0ZKoMpvQvXeY6PMGH+VFSYX02Mbev0mg6xdpE2/3X6VsdMy17i 8QuOtKnehR65x6oUW76E3TExa5S4UkY3ii4CXUQbB2wdEJuCMKHOC1WqZFc8pQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1786464846; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KwCNaXyT/GEMu3jUGbeIf8xZswTF8wKgzmEY7lUHDi4=; b=pKrCpWf5DfsodWAaRi6fkU2AXGRySn+78tppl1vpB0muVyY6NYmCg+9p2D3zx6ThbzKE+q tMovcSdxvJA9UPCw== From: tip-bot2 for Thomas =?utf-8?q?Wei=C3=9Fschuh_=28Schneider_Electric=29?= Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] selftests: timers: nanosleep: Report each test separately Cc: thomas.weissschuh@linutronix.de, Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260803-auxclock-nanosleep-prep-v2-13-910cbd485390@linutronix.de> References: <20260803-auxclock-nanosleep-prep-v2-13-910cbd485390@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178646484507.442315.17951931381195455426.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the timers/core branch of tip: Commit-ID: a1211288234058b0d13e2cc4a910b556c5308fdd Gitweb: https://git.kernel.org/tip/a1211288234058b0d13e2cc4a910b556c= 5308fdd Author: Thomas Wei=C3=9Fschuh (Schneider Electric) AuthorDate: Mon, 03 Aug 2026 12:04:44 +02:00 Committer: Thomas Gleixner CommitterDate: Tue, 11 Aug 2026 18:11:21 +02:00 selftests: timers: nanosleep: Report each test separately Currently the test for the sleep functionality itself and the one for the remaining time are reported together. This makes the test output a bit confusing, especially as the upcoming tests for auxiliary clocks will have different results between the two parts. Report each test part on its own. This also allows continuing testing other clocks after a single one has failed. Signed-off-by: Thomas Wei=C3=9Fschuh (Schneider Electric) Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260803-auxclock-nanosleep-prep-v2-13-910cb= d485390@linutronix.de --- tools/testing/selftests/timers/nanosleep.c | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/tools/testing/selftests/timers/nanosleep.c b/tools/testing/sel= ftests/timers/nanosleep.c index dd899dc..b45e4c8 100644 --- a/tools/testing/selftests/timers/nanosleep.c +++ b/tools/testing/selftests/timers/nanosleep.c @@ -142,23 +142,18 @@ static void nanosleep_test_clock(clockid_t clockid) =20 while (length <=3D (NSEC_PER_SEC * 10)) { ret =3D nanosleep_test(clockid, length); - if (ret =3D=3D KSFT_SKIP) { - ksft_test_result_skip("%s\n", clock_name(clockid)); + if (ret !=3D KSFT_PASS) { + ksft_test_result_report(ret, "%s\n", clock_name(clockid)); + ksft_test_result_skip("%s (remaining)\n", clock_name(clockid)); return; } - if (ret =3D=3D KSFT_FAIL) { - ksft_test_result_fail("%s\n", clock_name(clockid)); - ksft_exit_fail(); - } + length *=3D 100; } + ksft_test_result_pass("%s\n", clock_name(clockid)); =20 ret =3D nanosleep_test_remaining(clockid); - if (ret =3D=3D KSFT_FAIL) { - ksft_test_result_fail("%s\n", clock_name(clockid)); - ksft_exit_fail(); - } - ksft_test_result_pass("%s\n", clock_name(clockid)); + ksft_test_result_report(ret, "%s (remaining)\n", clock_name(clockid)); } =20 int main(int argc, char **argv) @@ -175,7 +170,7 @@ int main(int argc, char **argv) }; =20 ksft_print_header(); - ksft_set_plan(ARRAY_SIZE(tested_clocks)); + ksft_set_plan(ARRAY_SIZE(tested_clocks) * 2); =20 for (size_t clock_index =3D 0; clock_index < ARRAY_SIZE(tested_clocks); c= lock_index++) { clockid =3D tested_clocks[clock_index]; @@ -184,5 +179,5 @@ int main(int argc, char **argv) =20 nanosleep_test_clock(clockid); } - ksft_exit_pass(); + ksft_finished(); }