Skip to content

Commit dc14954

Browse files
committed
Dothem: fix 'leaks' mode
1 parent dda9bd0 commit dc14954

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

Dothem

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
NWD=contrib/workdir/git-new-workdir
44
MASTER=master
55

6+
section () {
7+
printf "\n\n\n"
8+
printf "############ %s\n" "$@"
9+
printf "\n\n\n"
10+
}
11+
612
inst_prefix=$(
713
IFS=:
814
for p in $PATH
@@ -234,26 +240,31 @@ do
234240
# cocci
235241
if test -n "$with_cocci"
236242
then
243+
section coccicheck
237244
Meta/Make $M $jobs -- coccicheck
238245
fi &&
239246

240247
# sparse
248+
section sparse
241249
Meta/Make $M $jobs -- NO_REGEX=NoThanks \
242250
SPARSE_FLAGS=-Wsparse-error sparse &&
243251
rm -f compat/regex/regex.o &&
244252

245253
# hdr
254+
section hdr-check
246255
Meta/Make $M $jobs -- hdr-check &&
247256

248257
# SANITIZE=address,undefined
249258
case "$dotest,$san" in
250259
'')
251260
;;
252261
test,)
262+
section test
253263
Meta/Make $M $noprove ${test+"$test"} $jobs $test_long $memtrash \
254264
-- ${with_dash:+SHELL_PATH=/bin/dash} "$@" $dotest
255265
;;
256266
*,t)
267+
section SANITIZE=address,undefined
257268
SANITIZE=address,undefined Meta/Make $M $jobs test &&
258269
Meta/Make >/dev/null distclean
259270
;;
@@ -262,6 +273,7 @@ do
262273
# sha256
263274
if test -n "$with_sha256"
264275
then
276+
section sha256
265277
(
266278
export GIT_TEST_DEFAULT_HASH=sha256
267279
Meta/Make -j16 $T test &&
@@ -274,6 +286,7 @@ do
274286
test -n "$skip_doc" ||
275287
if test "$save" = "$(git rev-parse HEAD)"
276288
then
289+
section docs
277290
Meta/Make $M $jobs -- check-docs &&
278291
Meta/Make $M $jobs -- $USE_ASCIIDOCTOR doc &&
279292
Meta/Make $M -- install-man install-html
@@ -283,8 +296,9 @@ do
283296
} &&
284297

285298
# leaks
286-
if test -n "with_leaks"
299+
if test -n "$with_leaks"
287300
then
301+
section leaks
288302
(
289303
export SANITIZE=leak
290304
export GIT_TEST_PASSING_SANITIZE_LEAK=true
@@ -297,6 +311,7 @@ do
297311
test z$install = znoinstall ||
298312
if test "$save" = "$(git rev-parse HEAD)"
299313
then
314+
section install
300315
Meta/Make $M -- ${with_dash:+SHELL_PATH=/bin/dash} "$@" install
301316
else
302317
echo >&2 "Head moved--not installing"

0 commit comments

Comments
 (0)