mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-07-06 03:46:35 +08:00
testing: Check CONFIG_TLS_NELEM is defined before using it
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
18280fdc25
commit
6716f15d7b
@ -300,7 +300,7 @@ static int user_main(int argc, char *argv[])
|
|||||||
check_test_memory_usage();
|
check_test_memory_usage();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_TLS_NELEM > 0
|
#if defined(CONFIG_TLS_NELEM) && CONFIG_TLS_NELEM > 0
|
||||||
/* Test TLS */
|
/* Test TLS */
|
||||||
|
|
||||||
tls_test();
|
tls_test();
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
#include "ostest.h"
|
#include "ostest.h"
|
||||||
|
|
||||||
#if CONFIG_TLS_NELEM > 0
|
#if defined(CONFIG_TLS_NELEM) && CONFIG_TLS_NELEM > 0
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Preprocessor Definitions
|
* Preprocessor Definitions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user