Merge branch 'ci/fix_hal_assert_check' into 'master'

fix(hal): replace assert with hal_assert

See merge request espressif/esp-idf!26349
This commit is contained in:
morris
2023-10-16 09:56:04 +08:00
4 changed files with 12 additions and 12 deletions

View File

@@ -22,10 +22,11 @@ if [ $count -gt 0 ]; then
fi
# ESP-IDF `hal` component shouldn't call "assert()" directlly
files_to_search=$(git ls-files --full-name 'components/hal/*')
files_to_search=$(git ls-files --full-name 'components/hal/*' | grep -v components/hal/test_apps/)
found_libc_assert=$(grep -E '\W+assert\(' $files_to_search)
if [ -n "$found_libc_assert" ]; then
echo "hal assert violation"
echo $found_libc_assert
echo "Please use HAL_ASSERT() instead of assert() in hal component"
exit 1
fi