diff options
author | Alan Conway <aconway@apache.org> | 2007-08-20 13:27:15 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-08-20 13:27:15 +0000 |
commit | e4fc33d57640ef4bcbe010acf0f00c4c782783ca (patch) | |
tree | 16b96399534086df7d3e7a9d4ff15d487ea672cb /qpid/cpp/src/tests/perftest.cpp | |
parent | ccc97ff1b41f0b952888b24735238b39e0fe882d (diff) | |
download | qpid-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.cpp | 2 |
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) |