error test

This commit is contained in:
2025-10-11 03:43:58 +02:00
parent ffbc42f558
commit 9ae5b281b9
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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
+1
View File
@@ -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);
}