diff options
author | Carl C. Trieloff <cctrieloff@apache.org> | 2006-12-08 19:58:32 +0000 |
---|---|---|
committer | Carl C. Trieloff <cctrieloff@apache.org> | 2006-12-08 19:58:32 +0000 |
commit | 7592d5b964e3ce0129a1192e29aab872ce1cf44e (patch) | |
tree | 72c825687702b8320dbc54193943d16ce73712ea /qpid/cpp/tests | |
parent | e2e8ab7dbacb6d954ec123d47813a55aabee612b (diff) | |
download | qpid-python-7592d5b964e3ce0129a1192e29aab872ce1cf44e.tar.gz |
2006-12-08 Jim Meyering <meyering@redhat.com>
* tests/Makefile.am (run-python-tests): Kill qpidd via a trap.
Don't let a failed/interrupted "make check" leave a running
qpidd process.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@484719 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/tests')
-rw-r--r-- | qpid/cpp/tests/Makefile.am | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qpid/cpp/tests/Makefile.am b/qpid/cpp/tests/Makefile.am index 1aab82c307..999d53df84 100644 --- a/qpid/cpp/tests/Makefile.am +++ b/qpid/cpp/tests/Makefile.am @@ -71,9 +71,10 @@ run-unit-tests: $(check_LTLIBRARIES) DllPlugInTester -c -b .libs/*.so run-python-tests: $(check_LTLIBRARIES) ../src/qpidd - ../src/qpidd > qpidd.log 2>&1 & echo $$! > qpidd.pid + ../src/qpidd > qpidd.log 2>&1 & pid=$$!; \ + trap 'status=$$?; kill $$pid; exit $$status' 0; \ + trap '(exit $$?); exit $$?' 1 2 13 15; \ cd ../../python ; ./run-tests -v -I cpp_failing.txt - kill `cat qpidd.pid` include gen.mk |