diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index d70b412b..2a3573db 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -43,7 +43,7 @@ extern struct np2_file { const char *file; const char *data; int len; -} test_files[]; +} np2_test_files[]; ") # include declarations of functions that need to be implemented diff --git a/lib/generate.sh b/lib/generate.sh index f6a34893..e8b1bb35 100755 --- a/lib/generate.sh +++ b/lib/generate.sh @@ -55,7 +55,7 @@ MAIN_YANG_ARRAY="${MAIN_YANG_ARRAY} {.file = NULL, .data = NULL, .len = 0}\n} # generate headers from all the test files -MAIN_YANG_ARRAY="${MAIN_YANG_ARRAY}struct np2_file test_files[] = { +MAIN_YANG_ARRAY="${MAIN_YANG_ARRAY}struct np2_file np2_test_files[] = { " for FILE_PATH in ${NP2_MODULE_DIR}/../tests/modules/*; do