From 13c7832c4b329522417a778485b49eae9f628f17 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Mon, 23 Feb 2026 21:29:55 -0500 Subject: [PATCH] Fix tests to use CXX compiler and fail if valgrind detects leak --- test/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Makefile b/test/Makefile index b9d237c..00ab43d 100644 --- a/test/Makefile +++ b/test/Makefile @@ -3,11 +3,11 @@ INCLUDE := ../include .PHONY: all all: build/tests build/tests - valgrind -q build/tests + valgrind --leak-check=full --error-exitcode=1 --log-file=build/valgrind.log build/tests build/tests: tests.cpp $(INCLUDE)/rcp.h mkdir -p $$(dirname $@) - $(CC) -std=c++20 -g -Wall -I$(INCLUDE) -o $@ $< + $(CXX) -std=c++20 -g -Wall -I$(INCLUDE) -o $@ $< .PHONY: clean clean: