From 9ae5b281b9250a5b71dbce491559c06c9c283616 Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Sat, 11 Oct 2025 03:43:58 +0200 Subject: [PATCH] error test --- makefile | 2 +- test_macro_magic.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 8571750..2fd1938 100644 --- a/makefile +++ b/makefile @@ -16,7 +16,7 @@ test: echo "Compiling all test files into $(TESTBIN)..."; \ $(CC) $(CFLAGS) _allocator_impl.c $$files -o $(TESTBIN) $(LDFLAGS) || exit 1; \ echo "Running tests..."; \ - valgrind --trace-children=yes $(TESTBIN); \ + valgrind --trace-children=yes --error-exitcode=1 $(TESTBIN); \ fi diff --git a/test_macro_magic.c b/test_macro_magic.c index 270acf5..1ab9ddd 100644 --- a/test_macro_magic.c +++ b/test_macro_magic.c @@ -23,4 +23,5 @@ Test(macro_magic, default_values) { cr_assert_eq(a1.is_true, true); cr_assert_eq(a2.is_true, true); cr_assert_eq(a3.is_true, false); + malloc(100); }