changeset 94:03564e8988a2

Placeholder infrastructure for useful exit code detection from SOAP client failure.
author mas01cr
date Wed, 03 Oct 2007 14:13:05 +0000
parents 89d34d50bf1b
children 6066d75a6d39
files tests/0015/run-test.sh tests/test-utils.sh
diffstat 2 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/tests/0015/run-test.sh	Wed Oct 03 13:54:13 2007 +0000
+++ b/tests/0015/run-test.sh	Wed Oct 03 14:13:05 2007 +0000
@@ -27,11 +27,8 @@
 
 check_server $!
 
-# FIXME: maybe at some point these will start exiting with a non-zero
-# exit code.  That's still OK; what's important is that the server
-# doesn't stop running.
-${AUDIODB} -c localhost:10015 -S -d /dev/null
-${AUDIODB} -c localhost:10015 -S -d /tmp/foo-does-not-exist
+expect_server_failure ${AUDIODB} -c localhost:10015 -S -d /dev/null
+expect_server_failure ${AUDIODB} -c localhost:10015 -S -d /tmp/foo-does-not-exist
 
 check_server $!
 
--- a/tests/test-utils.sh	Wed Oct 03 13:54:13 2007 +0000
+++ b/tests/test-utils.sh	Wed Oct 03 14:13:05 2007 +0000
@@ -66,3 +66,9 @@
 check_server() {
   grep ${AUDIODB} /proc/$1/cmdline > /dev/null
 }
+
+expect_server_failure() {
+  # FIXME: work out whether and how the client should report server
+  # errors.  At present, the client exits with a zero exit code.
+  "$@"
+}