diff options
| author | Kenneth Anthony Giusti <kgiusti@apache.org> | 2010-12-01 20:28:35 +0000 |
|---|---|---|
| committer | Kenneth Anthony Giusti <kgiusti@apache.org> | 2010-12-01 20:28:35 +0000 |
| commit | da185c1a45b6287c0ec79fa6fe8adacdba93bff1 (patch) | |
| tree | 6f79d1f7e78bab8852c0668e8fb39f11cfe3d775 /qpid/cpp/src/tests/BrokerFixture.h | |
| parent | f7efd9e27b96e43bb92844c52a186af1aa62b483 (diff) | |
| download | qpid-python-da185c1a45b6287c0ec79fa6fe8adacdba93bff1.tar.gz | |
Add a unit_test fixture for the Brokers internal management agent.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1041150 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/BrokerFixture.h')
| -rw-r--r-- | qpid/cpp/src/tests/BrokerFixture.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/BrokerFixture.h b/qpid/cpp/src/tests/BrokerFixture.h index 29920bb71a..672d954572 100644 --- a/qpid/cpp/src/tests/BrokerFixture.h +++ b/qpid/cpp/src/tests/BrokerFixture.h @@ -48,7 +48,7 @@ struct BrokerFixture : private boost::noncopyable { BrokerPtr broker; qpid::sys::Thread brokerThread; - BrokerFixture(Broker::Options opts=Broker::Options()) { + BrokerFixture(Broker::Options opts=Broker::Options(), bool enableMgmt=false) { // Keep the tests quiet unless logging env. vars have been set by user. if (!::getenv("QPID_LOG_ENABLE") && !::getenv("QPID_TRACE")) { qpid::log::Options logOpts; @@ -58,7 +58,7 @@ struct BrokerFixture : private boost::noncopyable { } opts.port=0; // Management doesn't play well with multiple in-process brokers. - opts.enableMgmt=false; + opts.enableMgmt=enableMgmt; opts.workerThreads=1; opts.dataDir=""; opts.auth=false; |
