mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-18 06:35:35 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user