cmark

My personal build of CMark ✏️

Commit
ff9fad1d4ba8368bc9b5dccbfb442224a1d571a3
Parent
7ae67bd161aa267aa540d30a6683a365f64bef3a
Author
John MacFarlane <jgm@berkeley.edu>
Date

Makefile: have leakcheck stop on first error...

instead of going through all the formats and options and probably getting the same output.

Diffstat

1 file changed, 2 insertions, 4 deletions

Status File Name N° Changes Insertions Deletions
Modified Makefile 6 2 4
diff --git a/Makefile b/Makefile
@@ -131,14 +131,12 @@ $(ALLTESTS): $(SPEC)
 	python3 test/spec_tests.py --spec $< --dump-tests | python3 -c 'import json; import sys; tests = json.loads(sys.stdin.read()); print("\n".join([test["markdown"] for test in tests]))' > $@
 
 leakcheck: $(ALLTESTS)
-	rc=0; \
 	for format in html man xml latex commonmark; do \
 	  for opts in "" "--smart" "--normalize"; do \
 	     echo "cmark -t $$format $$opts" ; \
-	     cat $< | valgrind -q --leak-check=full --dsymutil=yes --error-exitcode=1 $(PROG) -t $$format $$opts >/dev/null || rc=1; \
+	     valgrind -q --leak-check=full --dsymutil=yes --error-exitcode=1 $(PROG) -t $$format $$opts $(ALLTESTS) >/dev/null || exit 1;\
           done; \
-	done; \
-	exit $$rc
+	done;
 
 fuzztest:
 	{ for i in `seq 1 10`; do \