You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/08/03 14:30:35 UTC

[nuttx-apps] 02/02: apps/testing/ltp: conditional build the testcases based on defconfig

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit bc3fada2ce249cd21b7f0ac6145db9ba92fdbc02
Author: guoshichao <gu...@xiaomi.com>
AuthorDate: Thu Jul 27 15:55:40 2023 +0800

    apps/testing/ltp: conditional build the testcases based on defconfig
    
    Signed-off-by: guoshichao <gu...@xiaomi.com>
---
 testing/ltp/Makefile | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/testing/ltp/Makefile b/testing/ltp/Makefile
index 45f0b52ce..19aa31d08 100644
--- a/testing/ltp/Makefile
+++ b/testing/ltp/Makefile
@@ -194,6 +194,29 @@ BLACKWORDS += setegid
 BLACKWORDS += geteuid
 BLACKWORDS += getegid
 endif
+ifeq ($(CONFIG_PTHREAD_CLEANUP_STACKSIZE),0)
+BLACKWORDS += pthread_cleanup_push
+BLACKWORDS += pthread_cleanup_pop
+endif
+ifeq ($(CONFIG_LIBC_EXECFUNCS),)
+BLACKWORDS += execl
+BLACKWORDS += execvp
+BLACKWORDS += execlp
+BLACKWORDS += execvpe
+endif
+ifeq ($(CONFIG_FS_SHMFS),)
+BLACKWORDS += shm_open
+BLACKWORDS += shm_unlink
+endif
+ifeq ($(LIBC_LOCALE_CATALOG),)
+BLACKWORDS += catopen
+BLACKWORDS += catgets
+BLACKWORDS += catclose
+endif
+ifeq ($(CONFIG_MM_SHM),)
+BLACKWORDS += shmget
+BLACKWORDS += shmat
+endif
 
 MAINWORDS    += "main("