From patchwork Wed Aug 31 09:20:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1672214 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=a+T+LW4o; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=GomYHpL1; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MHdvZ3nCLz1yhy for ; Wed, 31 Aug 2022 19:20:58 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 905813CA6DC for ; Wed, 31 Aug 2022 11:20:55 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [IPv6:2001:4b78:1:20::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id BB67B3CA0B0 for ; Wed, 31 Aug 2022 11:20:42 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-2.smtp.seeweb.it (Postfix) with ESMTPS id B8B1E60091A for ; Wed, 31 Aug 2022 11:20:41 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 8E0CB1FD62; Wed, 31 Aug 2022 09:20:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1661937640; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=QouJ21AA3tS7DzhWtAqpZKuYUVYnLD7fT+SQ4aqUYmQ=; b=a+T+LW4olIUxP6COupNMWiPJB2S44bmdeR9P1sBkrSIZNMYMLRT2prY+OtFx9udclYXzq3 sJ3rgSuBl/XlT+KtmjANDAhffx0EbAbVrbdk8EMuHPTUOClz5xgqxjwWA3EJArPXltw+FA MRNZfnblJ2Kccq2JzPLCJTVPGVfvYrU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1661937640; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=QouJ21AA3tS7DzhWtAqpZKuYUVYnLD7fT+SQ4aqUYmQ=; b=GomYHpL1aXzjATrW5MkqIq/RhhH5L09U052JCrMNoTX3v7Mxb8nGxp01PrSA2dDDdJgp8O DJK+GARVz8T06gAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 566E81332D; Wed, 31 Aug 2022 09:20:40 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id fcWnE+gnD2ONQgAAMHmgww (envelope-from ); Wed, 31 Aug 2022 09:20:40 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Wed, 31 Aug 2022 11:20:35 +0200 Message-Id: <20220831092036.20779-1-pvorel@suse.cz> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-2.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-2.smtp.seeweb.it Subject: [LTP] [PATCH 1/2] include: Move stringification macros to tst_common.h X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" tst_common.h contains useful macros not directly related to test macros. Signed-off-by: Petr Vorel Reviewed-by: Li Wang --- include/tst_common.h | 4 ++++ include/tst_test_macros.h | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/tst_common.h b/include/tst_common.h index fd7a900d4..520cca72c 100644 --- a/include/tst_common.h +++ b/include/tst_common.h @@ -83,4 +83,8 @@ #define TST_RES_SUPPORTS_TCONF_TFAIL_TINFO_TPASS_TWARN(condition) \ TST_BUILD_BUG_ON(condition) +/* stringification */ +#define TST_TO_STR_(s) #s +#define TST_TO_STR(s) TST_TO_STR_(s) + #endif /* TST_COMMON_H__ */ diff --git a/include/tst_test_macros.h b/include/tst_test_macros.h index c8f7825c4..2e7b7871c 100644 --- a/include/tst_test_macros.h +++ b/include/tst_test_macros.h @@ -36,9 +36,6 @@ extern void *TST_RET_PTR; #define TST_2_(_1, _2, ...) _2 -#define TST_TO_STR_(s) #s -#define TST_TO_STR(s) TST_TO_STR_(s) - #define TST_FMT_(FMT, _1, ...) FMT, ##__VA_ARGS__ #define TST_MSG_(RES, FMT, SCALL, ...) \