summaryrefslogtreecommitdiff
path: root/lib/am/dejagnu.am
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2006-04-20 16:24:15 +0000
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2006-04-20 16:24:15 +0000
commitf2bc3b45f3a28fec6837e07ada63b124df0720a4 (patch)
tree3e22eca69686f017ce6f9cf120b7f34df194c44a /lib/am/dejagnu.am
parent9b1f146749e53de2d26f62a3b5ff8ba4290240e3 (diff)
downloadautomake-f2bc3b45f3a28fec6837e07ada63b124df0720a4.tar.gz
* lib/am/dejagnu.am (check-DEJAGNU): Fail when at least one test
failed, instead of when the last one failed (PR automake/488). Report from Paul Lunau. * tests/dejagnu4.test: Update to expose this. * THANKS: Update.
Diffstat (limited to 'lib/am/dejagnu.am')
-rw-r--r--lib/am/dejagnu.am10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/am/dejagnu.am b/lib/am/dejagnu.am
index 501b4082b..699640551 100644
--- a/lib/am/dejagnu.am
+++ b/lib/am/dejagnu.am
@@ -1,5 +1,5 @@
## automake - create Makefile.in from Makefile.am
-## Copyright (C) 1994, 1995, 1996, 1997, 2000, 2001, 2003
+## Copyright (C) 1994, 1995, 1996, 1997, 2000, 2001, 2003, 2006
## Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
@@ -58,11 +58,13 @@ check-DEJAGNU: site.exp
## If runtest can't be found, print a warning but don't die. It is
## pointless to cause a failure if the tests cannot be run at all.
if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
- l='$(DEJATOOL)'; for tool in $$l; do \
- $$runtest $(AM_RUNTESTFLAGS) $(RUNTESTDEFAULTFLAGS) $(RUNTESTFLAGS); \
+ exit_status=0; l='$(DEJATOOL)'; for tool in $$l; do \
+ if $$runtest $(AM_RUNTESTFLAGS) $(RUNTESTDEFAULTFLAGS) $(RUNTESTFLAGS); \
+ then :; else exit_status=1; fi; \
done; \
else echo "WARNING: could not find \`runtest'" 1>&2; :;\
- fi
+ fi; \
+ exit $$exit_status
## ------------------- ##