Skip to content

Commit 44058cc

Browse files
committed
Actually run 10 attempts instead of 2 only, and show attempt at failure.
1 parent e6a4f95 commit 44058cc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ endif
4646

4747
checkcmd = ./checktestdata $$opts $$prog $$data
4848
checksucc = $(checkcmd) >/dev/null 2>&1 || \
49-
{ echo "Running '$(checkcmd)' did not succeed..." ; exit 1; }
49+
{ echo "Running '$(checkcmd)'$${try:+ attempt $$try} did not succeed..." ; exit 1; }
5050
checkfail = $(checkcmd) >/dev/null 2>&1 && \
51-
{ echo "Running '$(checkcmd)' did not fail..." ; exit 1; }
51+
{ echo "Running '$(checkcmd)'$${try:+ attempt $$try} did not fail..." ; exit 1; }
5252

5353
config.mk: config.mk.in
5454
$(error run ./bootstrap and/or configure to create config.mk)
@@ -98,7 +98,7 @@ check: checktestdata
9898
grep 'IGNORE GENERATE TESTING' $$i >/dev/null && continue ; \
9999
n=$${i#tests/testprog} ; n=$${n%.in} ; \
100100
prog=$$i ; \
101-
for i in seq 10 ; do opts=-g ; $(checksucc) ; opts='' ; $(checksucc) ; done ; \
101+
for try in `seq 10` ; do opts=-g ; $(checksucc) ; opts='' ; $(checksucc) ; done ; \
102102
done ; \
103103
rm -f $$TMP
104104

0 commit comments

Comments
 (0)