From ab011165cd440b5535d39febd8118e3e26b64b57 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 18 Aug 2024 00:17:35 +0300 Subject: small fixes to issues reported by analyzer + Currently analyzer has to be run manually with something like make CFLAGS='-fanalyzer -Wno-analyzer-infinite-loop' I use an infinite loop as an assert, I know it's not great/technically UB but it's just a fallback. + Analyzer is still somewhat limited, I could add in more attributes about different functions, such as memory allocation sizes etc. + If I ever set up a CI pipeline, remember to use analyzer? --- tests/scripts/makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/scripts') diff --git a/tests/scripts/makefile b/tests/scripts/makefile index 8ea802f..8079c3c 100644 --- a/tests/scripts/makefile +++ b/tests/scripts/makefile @@ -32,7 +32,7 @@ include tests.mk .PHONY: check check: $(TESTS) - @for d in reports/* ; do \ + @cd reports; for d in * ; do \ if [ ! -f "$$d/OK" ]; then \ echo "BROKEN: $$d" ; \ elif [ "$$(tail -n1 $$d/OK)" != "OK" ]; then \ -- cgit v1.3