summaryrefslogtreecommitdiff
path: root/runv
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-11-30 19:38:28 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2019-11-30 19:38:28 -0500
commitd24409b9bf4783be63109f59d8558cef884069e6 (patch)
treea1886005cc1e65bed5d03f493149874d8e4398b6 /runv
parente8cd3b66a9bf20e5a68147a9882685299d40f495 (diff)
fixed some bugs involving returning types
Diffstat (limited to 'runv')
-rwxr-xr-xrunv8
1 files changed, 7 insertions, 1 deletions
diff --git a/runv b/runv
index 614eda3..08a52f8 100755
--- a/runv
+++ b/runv
@@ -4,7 +4,13 @@ if [ "$2" = "" ]; then
else
tocf="$2"
fi
-valgrind -q --track-origins=yes --error-exitcode=1 --malloc-fill=0xcd --free-fill=0xef --num-callers=100 ./toc $tocf || exit 1
+if [ "$1" = "noq" ]; then
+ FLAGS=
+else
+ FLAGS="-q"
+fi
+
+valgrind $FLAGS --track-origins=yes --error-exitcode=1 --malloc-fill=0xcd --free-fill=0xef --num-callers=100 ./toc $tocf || exit 1
if [ "$1" = "c" ]; then
gcc out.c && ./a.out
elif [ "$1" = "pc" ]; then