From nobody Wed Dec 17 10:44:10 2025 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 4dWVlt6zy0z6KqFW for ; Wed, 17 Dec 2025 10:44:10 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dWVlt4Ppwz3tWy for ; Wed, 17 Dec 2025 10:44:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1765968250; h=from:from: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; bh=XhatxQ1O7SiS/2aaA/lsEi1kUgGKNUgBlXU5KqK7w1o=; b=mPDIPHM0WLj/EM8ztPAcs9F+C57Z8IbGjYcXIfoE/V39zCeJQg9z90x10iZykDRkn/LK2z 6zyyS7YCKXKK/HROFQbddzB53+RKk8emlcCEFLSkq4SUU3DRh9v4vImNXVyFOgVcuPqjZa wKeYy2soUix+oIS4zcNoQ4QSjE+l4vjj2RQ1Mt/qWciNe3jJyX8Hqz+axBie049y+l/Rdm 8dMetRvL3dMbPc23JWdP8yOz4ULDDhYxw76Cqy6mLvlOMvg8Yo/9LetCZp/+MiSAwpGJTH lVDZVtQNkCsw0MeaoIFP342+o2yquVgyKIK1THXXeMe85/4DNarW/TBQhrvPcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1765968250; h=from:from: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; bh=XhatxQ1O7SiS/2aaA/lsEi1kUgGKNUgBlXU5KqK7w1o=; b=MOj9pvCS7o55jDwn/Ca7y5WKhc73JGtUwSwzqAuyS8EC596m5N7BQZ6n4ulNYNbKMb+62m pPD+YAYjAzhvzKni0LSSIERgFnG/2rMLMSuc0pCCKmHGfGxDbCvcFVukuIz0JU4yASx8Uz tPWFjCPp1RIbQvY/Tobv30ztieGF3GX9K8fhkKO0XMf1jcVm8i9dN19GtByov1yqiPu7e0 8fyrv1FNe3k8imWhtSoqIg3XKOioGKg2IoWFdAVvoMA3v/yTEE0uxaa6+FPPJQrzB2M64m lxBnCUED0oIBu+EAQHfUlF4liYAhR1LegbaNyBrUEc6bYYZdkZmKGofV1gTVFg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1765968250; a=rsa-sha256; cv=none; b=C1NnTswb6qh8BihyWi5sR9ePQcPOFbeCWOprpTfxh/tpIi4TfuRbOtctjRkJF/fz8YB7Hj AQkyQJI4akuhJ1jbNYzO6SClQhbH1NpMuCAMXvwOJnN2mgdnnWRI84uZ7k4eJ2TJM5DhbF qz6cTMkO1939rYedT4gOWI26Cwdwb2wOysL3Psnm659Z5x3PU6wik2HvgJFddTqPHN+/0k +zkX5kQes5+jPH2Nraafeye7b8wzPvQqoBaHUGasgoL8yzy8tTRzX579KGtL0bNVI+Hy3w Fmust79rSLdoeoFRN6WFKW5PbTl5mNw+Xcf9EaQ9zh8SUZ2+3VrA8g4DvWEMhA== 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 4dWVlt3xvNzptn for ; Wed, 17 Dec 2025 10:44:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id c406 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 17 Dec 2025 10:44:10 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Cc: Siva Mahadevan From: Li-Wen Hsu Subject: git: ec640742e302 - main - lib/msun/tests: Remove newlines in ATF msgs 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: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ec640742e30270098f8d982c1c0838f2dfde9ad5 Auto-Submitted: auto-generated Date: Wed, 17 Dec 2025 10:44:10 +0000 Message-Id: <6942897a.c406.229d0e1c@gitrepo.freebsd.org> The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=ec640742e30270098f8d982c1c0838f2dfde9ad5 commit ec640742e30270098f8d982c1c0838f2dfde9ad5 Author: Siva Mahadevan AuthorDate: 2025-10-01 15:13:08 +0000 Commit: Li-Wen Hsu CommitDate: 2025-12-17 10:43:06 +0000 lib/msun/tests: Remove newlines in ATF msgs This fixes broken test reports with the following message: lib/msun/fe_round_test:fe_round -> broken: Test result contains multiple lines: expected_failure: /usr/src/contrib/netbsd-tests/lib/libm/t_fe_round.c:95: Didn't get the same rounding mode out!<>(index 0) fed in 64 rounding mode, got 0 out<> [0.079s] Signed-off-by: Siva Mahadevan MFC after: 3 days Sponsored by: The FreeBSD Foundation Pull Request: https://github.com/freebsd/freebsd-src/pull/1871 --- contrib/netbsd-tests/lib/libm/t_fe_round.c | 24 ++++++++++++------------ lib/msun/tests/fmaxmin_test.c | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/contrib/netbsd-tests/lib/libm/t_fe_round.c b/contrib/netbsd-tests/lib/libm/t_fe_round.c index 33da289eb156..a7ee3bf77b98 100644 --- a/contrib/netbsd-tests/lib/libm/t_fe_round.c +++ b/contrib/netbsd-tests/lib/libm/t_fe_round.c @@ -80,15 +80,15 @@ ATF_TC_BODY(fe_round, tc) received = lrint(values[i].input); ATF_CHECK_MSG( (labs(received - values[i].expected) < EPSILON), - "lrint rounding wrong, difference too large\n" - "input: %f (index %d): got %ld, expected %ld\n", + "lrint rounding wrong, difference too large. " + "input: %f (index %d): got %ld, expected %ld", values[i].input, i, received, values[i].expected); /* Do we get the same rounding mode out? */ ATF_CHECK_MSG( (fegetround() == values[i].round_mode), - "Didn't get the same rounding mode out!\n" - "(index %d) fed in %d rounding mode, got %d out\n", + "Didn't get the same rounding mode out!. " + "(index %d) fed in %d rounding mode, got %d out", i, values[i].round_mode, fegetround()); } } @@ -109,15 +109,15 @@ ATF_TC_BODY(fe_nearbyint, tc) received = nearbyint(values[i].input); ATF_CHECK_MSG( (fabs(received - values[i].expected) < EPSILON), - "nearbyint rounding wrong, difference too large\n" - "input: %f (index %d): got %f, expected %ld\n", + "nearbyint rounding wrong, difference too large. " + "input: %f (index %d): got %f, expected %ld", values[i].input, i, received, values[i].expected); /* Do we get the same rounding mode out? */ ATF_CHECK_MSG( (fegetround() == values[i].round_mode), - "Didn't get the same rounding mode out!\n" - "(index %d) fed in %d rounding mode, got %d out\n", + "Didn't get the same rounding mode out! " + "(index %d) fed in %d rounding mode, got %d out", i, values[i].round_mode, fegetround()); } } @@ -151,8 +151,8 @@ ATF_TC_BODY(fe_nextafter, tc) } ATF_CHECK_MSG( res && (fabs(received - values2[i].expected) < EPSILON), - "nextafter() rounding wrong, difference too large\n" - "input: %f (index %d): got %f, expected %f, res %d\n", + "nextafter() rounding wrong, difference too large. " + "input: %f (index %d): got %f, expected %f, res %d", values2[i].input, i, received, values2[i].expected, res); } } @@ -177,8 +177,8 @@ ATF_TC_BODY(fe_nexttoward, tc) } ATF_CHECK_MSG( res && (fabs(received - values2[i].expected) < EPSILON), - "nexttoward() rounding wrong, difference too large\n" - "input: %f (index %d): got %f, expected %f, res %d\n", + "nexttoward() rounding wrong, difference too large. " + "input: %f (index %d): got %f, expected %f, res %d", values2[i].input, i, received, values2[i].expected, res); } } diff --git a/lib/msun/tests/fmaxmin_test.c b/lib/msun/tests/fmaxmin_test.c index 51956b1084af..85a105a7f44f 100644 --- a/lib/msun/tests/fmaxmin_test.c +++ b/lib/msun/tests/fmaxmin_test.c @@ -50,7 +50,7 @@ CHECK_FP_EXCEPTIONS_MSG(0, ALL_STD_EXCEPT, \ #func "(%.20Lg, %.20Lg) rmode%d", (x), (y), rmode); \ ATF_CHECK_MSG(fpequal_cs(__result, (expected), true), \ - #func "(%.20Lg, %.20Lg) rmode%d = %.20Lg, expected %.20Lg\n", \ + #func "(%.20Lg, %.20Lg) rmode%d = %.20Lg, expected %.20Lg", \ (x), (y), rmode, __result, (expected)); \ } while (0)