From 29db1ce52445a809ae9e4f7db2a19ccfa9904e31 Mon Sep 17 00:00:00 2001 From: Soispha Date: Mon, 21 Aug 2023 01:24:12 +0200 Subject: Feat(c): Init --- c/test | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 c/test (limited to 'c/test') diff --git a/c/test b/c/test new file mode 100755 index 0000000..05d1fb5 --- /dev/null +++ b/c/test @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +CFLAGS=-ggdb3 make valgrind-out.txt + +printf "\n___RESULTS:___\n"; +if grep -q 'ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)' valgrind-out.txt; then + echo "No Memory leaks"; +else + echo "Memory leaks: " && tail valgrind-out.txt; + exit 1; +fi + + +# vim: ft=sh -- cgit 1.4.1