Author: aconway
Date: Thu Aug 9 18:10:04 2007
New Revision: 564446
URL: http://svn.apache.org/viewvc?view=rev&rev=564446
Log:
Revert $(dirname $0) changes, break distclean/rpm builds.
Modified:
incubator/qpid/trunk/qpid/cpp/src/tests/topictest
Modified: incubator/qpid/trunk/qpid/cpp/src/tests/topictest
URL:
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/tests/topictest?view=diff&rev=564446&r1=564445&r2=564446
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/tests/topictest (original)
+++ incubator/qpid/trunk/qpid/cpp/src/tests/topictest Thu Aug 9 18:10:04 2007
@@ -9,11 +9,6 @@
MESSAGES=2000
BATCHES=10
-# Setup path to publisher/subscriber
-dir=$(dirname $0)
-publisher=$dir/topic_publisher
-subscriber=$dir/topic_listener
-
while getopts "s:m:b:" opt ; do
case $opt in
s) SUBSCRIBERS=$OPTARG ;;
@@ -29,11 +24,11 @@
subscribe() {
echo Start subscriber $1
LOG="subscriber_$1.log"
- $subscriber > $LOG 2>&1 && rm -f $LOG
+ ./topic_listener > $LOG 2>&1 && rm -f $LOG
}
publish() {
- $publisher --messages $MESSAGES --batches $BATCHES --subscribers
$SUBSCRIBERS
+ ./topic_publisher --messages $MESSAGES --batches $BATCHES --subscribers
$SUBSCRIBERS
}
for ((i=$SUBSCRIBERS ; i--; )); do