Add test to ensure asserts can return
This commit is contained in:
+16
@@ -224,6 +224,22 @@ jobs:
|
|||||||
# report-size will compile littlefs and report the size
|
# report-size will compile littlefs and report the size
|
||||||
script: [*report-size]
|
script: [*report-size]
|
||||||
|
|
||||||
|
# test compilation with asserts that return -1
|
||||||
|
- stage: test
|
||||||
|
env:
|
||||||
|
- NAME=littlefs-assert-return
|
||||||
|
- CC="arm-linux-gnueabi-gcc --static -mthumb"
|
||||||
|
- CFLAGS="-Werror -D'LFS_ASSERT(test)=do {if(!(test)) {return -1;}} while(0)'"
|
||||||
|
if: branch !~ -prefix$
|
||||||
|
install:
|
||||||
|
- *install-common
|
||||||
|
- sudo apt-get install
|
||||||
|
gcc-arm-linux-gnueabi
|
||||||
|
libc6-dev-armel-cross
|
||||||
|
- arm-linux-gnueabi-gcc --version
|
||||||
|
# report-size will compile littlefs and report the size
|
||||||
|
script: [*report-size]
|
||||||
|
|
||||||
# test compilation in thread-safe mode
|
# test compilation in thread-safe mode
|
||||||
- stage: test
|
- stage: test
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user