summaryrefslogtreecommitdiff
path: root/cpp/src/tests/federated_cluster_test
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-02-23 22:12:19 +0000
committerAlan Conway <aconway@apache.org>2009-02-23 22:12:19 +0000
commit32965f844e087ccb671a0dc52dcd812c975341e9 (patch)
tree7994c09e7b7e08282e97fed9253dbc985c38a8f8 /cpp/src/tests/federated_cluster_test
parent3d10240efc85b6e76c500f177d6f9d680f29a493 (diff)
downloadqpid-python-32965f844e087ccb671a0dc52dcd812c975341e9.tar.gz
QPID-1674 Mick Goulish: Fixes an error caused by a string going out of scope just before ForkedBroker startup.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@747162 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/federated_cluster_test')
-rwxr-xr-xcpp/src/tests/federated_cluster_test6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/tests/federated_cluster_test b/cpp/src/tests/federated_cluster_test
index c518c0caed..ef0db4cb8e 100755
--- a/cpp/src/tests/federated_cluster_test
+++ b/cpp/src/tests/federated_cluster_test
@@ -21,8 +21,8 @@
# Test reliability of the replication feature in the face of link
# failures:
-MY_DIR=`dirname \`which $0\``
-PYTHON_DIR=${MY_DIR}/../../../python
+srcdir=`dirname $0`
+PYTHON_DIR=${srcdir}/../../../python
trap stop_brokers EXIT
@@ -48,7 +48,7 @@ start_brokers() {
BROKER_A=`cat fed.port.tmp`
#...and start cluster
- ./start_cluster 2 || fail "Could not start cluster"
+ $srcdir/start_cluster 2 || fail "Could not start cluster"
NODE_1=$(head -1 cluster.ports)
NODE_2=$(tail -1 cluster.ports)
}