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();
|
||||
#endif
|
||||
|
||||
#if CONFIG_TLS_NELEM > 0
|
||||
#if defined(CONFIG_TLS_NELEM) && CONFIG_TLS_NELEM > 0
|
||||
/* Test TLS */
|
||||
|
||||
tls_test();
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
#include "ostest.h"
|
||||
|
||||
#if CONFIG_TLS_NELEM > 0
|
||||
#if defined(CONFIG_TLS_NELEM) && CONFIG_TLS_NELEM > 0
|
||||
|
||||
/****************************************************************************
|
||||
* Preprocessor Definitions
|
||||
|
Loading…
x
Reference in New Issue
Block a user