From patchwork Sun Nov 5 14:22:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 741173 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C80FBC4167D for ; Sun, 5 Nov 2023 14:22:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229952AbjKEOWi (ORCPT ); Sun, 5 Nov 2023 09:22:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229939AbjKEOWh (ORCPT ); Sun, 5 Nov 2023 09:22:37 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57AE6D9; Sun, 5 Nov 2023 06:22:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1699194152; bh=FhnRHVVe+PHf+ugZHAO2JXY1kUkT30VNjI8oHcu7ofI=; h=From:Date:Subject:To:Cc:From; b=YUBKJcLHqXU2ru+rtoKJxlq5qZmu11rDpDlc6so4DqTFycyLQPp+tV4eeT4b3adUr gTEkDRAayn0i6DRitO9TRjHNNX/0c9s60VswSGwK5wYA4ZL3eJKEIqkSkY6GDX9RVa Bu6LW67WSauno+GM1f7ujnrO4DdlNXaac4RckWfg= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Sun, 05 Nov 2023 15:22:30 +0100 Subject: [PATCH] selftests/nolibc: fix testcase status alignment MIME-Version: 1.0 Message-Id: <20231105-nolibc-align-v1-1-5bfc542cb6ee@weissschuh.net> X-B4-Tracking: v=1; b=H4sIACWlR2UC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2NDQwNT3bz8nMykZN3EnMz0PF1zU0tLo6SUtDRTExMloJaCotS0zAqwcdG xtbUAXDeqqF4AAAA= To: Willy Tarreau , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1699194151; l=2095; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=FhnRHVVe+PHf+ugZHAO2JXY1kUkT30VNjI8oHcu7ofI=; b=mdM3igfqOhDiyq9aAsX9NxePvbRBJPTaK5DAcDpvpQdAAEgJTxRpIWCr3/x867hlU0Wk2+Qhm FlGM/Hz72RzBFUuzYLzYw7S+JIqJgGEVUjfIGN8eDv3tAYW+9bM0Hn5 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Center-align all possible status reports. Before OK and FAIL were center-aligned in relation to each other but SKIPPED and FAILED would be left-aligned. Before: 7 environ_addr = <0x7fffef3e7c50> [OK] 8 environ_envp = <0x7fffef3e7c58> [FAIL] 9 environ_auxv [SKIPPED] 10 environ_total [SKIPPED] 11 environ_HOME = <0x7fffef3e99bd> [OK] 12 auxv_addr [SKIPPED] 13 auxv_AT_UID = 1000 [OK] After: 7 environ_addr = <0x7ffff13b00a0> [OK] 8 environ_envp = <0x7ffff13b00a8> [FAIL] 9 environ_auxv [SKIPPED] 10 environ_total [SKIPPED] 11 environ_HOME = <0x7ffff13b19bd> [OK] 12 auxv_addr [SKIPPED] 13 auxv_AT_UID = 1000 [OK] Signed-off-by: Thomas Weißschuh --- tools/testing/selftests/nolibc/nolibc-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- base-commit: 6de6466e41182875252fe09658f9b7d74c4fa43c change-id: 20231105-nolibc-align-75992bdff544 Best regards, diff --git a/tools/testing/selftests/nolibc/nolibc-test.c b/tools/testing/selftests/nolibc/nolibc-test.c index 2f10541e6f38..e173014f6b66 100644 --- a/tools/testing/selftests/nolibc/nolibc-test.c +++ b/tools/testing/selftests/nolibc/nolibc-test.c @@ -150,11 +150,11 @@ static void result(int llen, enum RESULT r) const char *msg; if (r == OK) - msg = " [OK]"; + msg = " [OK]"; else if (r == SKIPPED) msg = "[SKIPPED]"; else - msg = "[FAIL]"; + msg = " [FAIL]"; if (llen < 64) putcharn(' ', 64 - llen);