[LTP] [PATCH 01/12] posix/pthread_create/15-1: Supress warning
Joerg Vehlow
lkml@jv-coder.de
Fri Nov 19 08:45:51 CET 2021
From: Joerg Vehlow <joerg.vehlow@aox-tech.de>
generate-makefiles.sh gave the following warning:
conformance/interfaces/pthread_create/15-1.c should be test.
The script has a strange implementation, that just greps for "main" in the c file.
Based on that it decides if the file should be a test or a run-test.
Other tests in the suite including the main-function from testfrmw/threads_scenarii.c
also use a comment, that supresses the message
Signed-off-by: Joerg Vehlow <joerg.vehlow@aox-tech.de>
---
.../conformance/interfaces/pthread_create/15-1.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/15-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/15-1.c
index e8c003fd4..a05db679b 100644
--- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/15-1.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/15-1.c
@@ -76,6 +76,7 @@
/*********************************** Test cases *****************************************/
/********************************************************************************************/
+/* main is defined in the next file */
#define STD_MAIN
#include "../testfrmw/threads_scenarii.c"
--
2.25.1
More information about the ltp
mailing list