summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-08-27 14:08:20 +0000
committerAlan Conway <aconway@apache.org>2010-08-27 14:08:20 +0000
commit9ef063667293641f9533fe89e8ef9557301a587e (patch)
treeacf1c66e92bb5a42a8c94149305e7bdf1b75977a /cpp/src
parent0f5090ee533c1e9a99b02ebdc6704392e501684a (diff)
downloadqpid-python-9ef063667293641f9533fe89e8ef9557301a587e.tar.gz
Check exit status of qpid-route, avoid hung test if it fails.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@990157 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rwxr-xr-xcpp/src/tests/clustered_replication_test2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/tests/clustered_replication_test b/cpp/src/tests/clustered_replication_test
index 174f93382d..d6c72d9d1b 100755
--- a/cpp/src/tests/clustered_replication_test
+++ b/cpp/src/tests/clustered_replication_test
@@ -84,7 +84,7 @@ if test -d $PYTHON_DIR; then
$PYTHON_COMMANDS/qpid-config -a "localhost:$DR1" add queue test-queue
$PYTHON_COMMANDS/qpid-config -a "localhost:$DR1" add queue control-queue
$PYTHON_COMMANDS/qpid-config -a "localhost:$DR1" add exchange replication REPLICATION_EXCHANGE
- $PYTHON_COMMANDS/qpid-route queue add localhost:$DR2 localhost:$PRIMARY2 REPLICATION_EXCHANGE REPLICATION_QUEUE
+ $PYTHON_COMMANDS/qpid-route queue add localhost:$DR2 localhost:$PRIMARY2 REPLICATION_EXCHANGE REPLICATION_QUEUE || fail "Could not add route."
#send more messages to primary
for i in `seq 11 20`; do echo Message$i; done | ./sender --port $PRIMARY1 --send-eos 1