run tests with valgrind

This commit is contained in:
2025-10-09 20:52:27 +02:00
parent dd983c9834
commit 4942d959d5
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc make libcriterion-dev
sudo apt-get install -y gcc make libcriterion-dev valgrind
- name: Build and run tests
run: make test
+2 -2
View File
@@ -1,6 +1,6 @@
CC := gcc
CFLAGS := -Wall -Wextra -Wno-override-init -O2 -fsanitize=address
CFLAGS := -Wall -Wextra -Wno-override-init -O0 -g -fno-omit-frame-pointer -fno-inline
LDFLAGS := -lcriterion
TESTBIN := /tmp/all_tests
@@ -16,7 +16,7 @@ test:
echo "Compiling all test files into $(TESTBIN)..."; \
$(CC) $(CFLAGS) _allocator_impl.c $$files -o $(TESTBIN) $(LDFLAGS); \
echo "Running tests..."; \
$(TESTBIN); \
valgrind $(TESTBIN); \
fi