diff options
author | Adrian Thurston <thurston@complang.org> | 2014-11-21 15:14:06 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2014-11-21 15:14:22 -0500 |
commit | 07e700e57767a14870e50ff1953812727c449c73 (patch) | |
tree | d55b826459fd55bbb6977cfd70e64996c3af8497 | |
parent | 309278d16a7bac643e280ae9fa7b36878d95a23b (diff) | |
download | colm-07e700e57767a14870e50ff1953812727c449c73.tar.gz |
runtests: respond to signals by exiting
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | test/runtests.sh | 4 |
3 files changed, 7 insertions, 0 deletions
@@ -15,3 +15,4 @@ /compile /test-driver /build +/m4 diff --git a/configure.ac b/configure.ac index 10bea563..35265d97 100644 --- a/configure.ac +++ b/configure.ac @@ -7,6 +7,8 @@ PUBDATE="Oct 2014" AM_INIT_AUTOMAKE([foreign]) +AC_CONFIG_MACRO_DIR([m4]) + AC_SUBST(PUBDATE) AC_CONFIG_HEADER([src/config.h src/defs.h]) diff --git a/test/runtests.sh b/test/runtests.sh index 32c532ba..70ef9665 100644 --- a/test/runtests.sh +++ b/test/runtests.sh @@ -49,6 +49,10 @@ function sig_exit() exit 1; } +trap sig_exit SIGINT +trap sig_exit SIGQUIT +trap sig_exit SIGTERM + # Parse args. while getopts vdm opt; do case $opt in |