aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-07-25 11:29:51 +0200
committerKarel Kočí <cynerd@email.cz>2024-07-25 11:29:51 +0200
commit0adc7c32594913d0f4ec774a85cb03554cd719d4 (patch)
treec7053a3f14852754ca846cf5e27ef18fd62be385
parent31f5accaa54f6110cfeefa19e3e4ed6d1a71190b (diff)
downloadshellrc-0adc7c32594913d0f4ec774a85cb03554cd719d4.tar.gz
shellrc-0adc7c32594913d0f4ec774a85cb03554cd719d4.tar.bz2
shellrc-0adc7c32594913d0f4ec774a85cb03554cd719d4.zip
dev: ensure that valgrind exists with non-zero exit code on error
-rw-r--r--shellrc.d/dev12
1 files changed, 6 insertions, 6 deletions
diff --git a/shellrc.d/dev b/shellrc.d/dev
index 2934e87..74d692b 100644
--- a/shellrc.d/dev
+++ b/shellrc.d/dev
@@ -2,12 +2,12 @@
if command -v valgrind >/dev/null; then
- alias memcheck="valgrind --track-fds=yes --leak-check=full --track-origins=yes"
- alias callgrind="valgrind --tool=callgrind"
- alias massif="valgrind --tool=massif"
- alias drd="valgrind --tool=drd"
- alias helgrind="valgrind --tool=helgrind"
- alias dhat="valgrind --tool=dhat"
+ alias memcheck="valgrind --error-exitcode=118 --track-fds=yes --leak-check=full --track-origins=yes"
+ alias callgrind="valgrind --error-exitcode=118 --tool=callgrind"
+ alias massif="valgrind --error-exitcode=118 --tool=massif"
+ alias drd="valgrind --error-exitcode=118 --tool=drd"
+ alias helgrind="valgrind --error-exitcode=118 --tool=helgrind"
+ alias dhat="valgrind --error-exitcode=118 --tool=dhat"
fi