summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/perftest.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-08-20 13:27:15 +0000
committerAlan Conway <aconway@apache.org>2007-08-20 13:27:15 +0000
commite4fc33d57640ef4bcbe010acf0f00c4c782783ca (patch)
tree16b96399534086df7d3e7a9d4ff15d487ea672cb /qpid/cpp/src/tests/perftest.cpp
parentccc97ff1b41f0b952888b24735238b39e0fe882d (diff)
downloadqpid-python-e4fc33d57640ef4bcbe010acf0f00c4c782783ca.tar.gz
If neither --listen nor --publish is specified, do both.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@567696 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/perftest.cpp')
-rw-r--r--qpid/cpp/src/tests/perftest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/perftest.cpp b/qpid/cpp/src/tests/perftest.cpp
index 7c0941bf68..38882f19c3 100644
--- a/qpid/cpp/src/tests/perftest.cpp
+++ b/qpid/cpp/src/tests/perftest.cpp
@@ -64,6 +64,8 @@ struct PublishThread : public Runnable { Thread thread; void run(); };
int main(int argc, char** argv) {
try {
opts.parse(argc, argv);
+ if (!opts.listen && !opts.publish)
+ opts.listen = opts.publish = true;
ListenThread listen;
PublishThread publish;
if (opts.listen)