Skip to contentSkip to conversation

tst_test: Document @message, @scall, @sample

PATCH In review Petr Vorel 2 participants 2 messages Jun 20, 2024 – Jun 25, 2024

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 tst_test: Document @message, @scall, @sample

All undocumented members are in the library "undescribed", better to document the purpose.

---
 include/tst_test.h | 6 ++++++
 1 file changed, 6 insertions(+)
include/tst_test.h +6 -0
index 8dc20d110..20960e9b9 100644
@@ -428,6 +428,10 @@ struct tst_ulimit_val {
  *            can be set. May be executed several times if test was passed '-i'
  *            or '-d' command line parameters.
  *
+ * @scall: Internal only (timer measurement library).
+ *
+ * @sample: Internal only (timer measurement library).
+ *
  * @resource_files: A NULL terminated array of filenames that will be copied
  *                  to the test temporary directory from the LTP datafiles
  *                  directory.
@@ -642,6 +646,8 @@ int main(int argc, char *argv[])
 /**
  * TST_TEST_TCONF() - Exit tests with a TCONF message.
  *
+ * @message: Error message (the reason to skip test).
+ *
  * This macro is used in test that couldn't be compiled either because current
  * CPU architecture is unsupported or because of missing development libraries.
  */
Signature · 5 lines
2.45.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 25 lines · On Thursday, June 20, 2024 8:02:03 AM GMT+2 you wrote:

All undocumented members are in the library "undescribed", better to document the purpose.

---
 include/tst_test.h | 6 ++++++
 1 file changed, 6 insertions(+)
include/tst_test.h +4 -0
index 8dc20d110..20960e9b9 100644
@@ -428,6 +428,10 @@ struct tst_ulimit_val {
  *            can be set. May be executed several times if test was passed '-i'
  *            or '-d' command line parameters.
  *
+ * @scall: Internal only (timer measurement library).
+ *
+ * @sample: Internal only (timer measurement library).
+ *
  * @resource_files: A NULL terminated array of filenames that will be copied
  *                  to the test temporary directory from the LTP datafiles
  *                  directory.

include/tst_test.h int main(int argc, char *argv[]) · line 653

Quoted 8 lines
include/tst_test.h +2 -0
@@ -642,6 +646,8 @@ int main(int argc, char *argv[])
 /**
  * TST_TEST_TCONF() - Exit tests with a TCONF message.
  *
+ * @message: Error message (the reason to skip test).
+ *
  * This macro is used in test that couldn't be compiled either because current
  * CPU architecture is unsupported or because of missing development libraries.
  */

Regards,
Avinesh

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp