[LTP] [PATCH 2/2] doc: Document macros for stringification

Petr Vorel pvorel@suse.cz
Wed Aug 31 11:20:36 CEST 2022


Also note header which define useful macros (hint for users).

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 doc/c-test-api.txt | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/doc/c-test-api.txt b/doc/c-test-api.txt
index 9db4579da..03126304a 100644
--- a/doc/c-test-api.txt
+++ b/doc/c-test-api.txt
@@ -837,6 +837,8 @@ start for you. See 'testcases/kernel/device-drivers/block' for details.
 1.12 Useful macros
 ~~~~~~~~~~~~~~~~~~
 
+These macros are defined in 'include/tst_common.h'.
+
 [source,c]
 -------------------------------------------------------------------------------
 ARRAY_SIZE(arr)
@@ -852,6 +854,14 @@ LTP_ALIGN(x, a)
 
 Aligns the x to be next multiple of a. The a must be power of 2.
 
+[source,c]
+-------------------------------------------------------------------------------
+TST_TO_STR(s)  /* stringification */
+TST_TO_STR_(s) /* macro expansion */
+-------------------------------------------------------------------------------
+
+Macros for stringification.
+
 1.13 Filesystem type detection and skiplist
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-- 
2.37.2



More information about the ltp mailing list