diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2013-10-08 15:08:44 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2013-10-08 15:08:44 +0000 |
| commit | 58ca342017a5f413587edbfe1e809e9ee708ad27 (patch) | |
| tree | 839b717aaab7494aff5dfbaeb2d6772864928269 /qpid/cpp/src/tests/legacystore/TransactionalTest.cpp | |
| parent | a4a2f3f4c0986c74d4cf9277b649f498c8b1aae3 (diff) | |
| download | qpid-python-58ca342017a5f413587edbfe1e809e9ee708ad27.tar.gz | |
QPID-4582: Get legacystore unit tests working
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1530300 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/legacystore/TransactionalTest.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/legacystore/TransactionalTest.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/qpid/cpp/src/tests/legacystore/TransactionalTest.cpp b/qpid/cpp/src/tests/legacystore/TransactionalTest.cpp index 2d3f6f922c..d1bc34d5a7 100644 --- a/qpid/cpp/src/tests/legacystore/TransactionalTest.cpp +++ b/qpid/cpp/src/tests/legacystore/TransactionalTest.cpp @@ -20,18 +20,20 @@ */ #include "unit_test.h" - -#include "qpid/legacystore/MessageStoreImpl.h" -#include <iostream> #include "MessageUtils.h" -#include "qpid/legacystore/StoreException.h" + #include "qpid/broker/Queue.h" #include "qpid/broker/RecoveryManagerImpl.h" +#include "qpid/broker/PersistableObject.h" #include "qpid/framing/AMQHeaderBody.h" +#include "qpid/legacystore/MessageStoreImpl.h" +#include "qpid/legacystore/StoreException.h" #include "qpid/log/Statement.h" #include "qpid/log/Logger.h" #include "qpid/sys/Timer.h" +#include <iostream> + using namespace mrg::msgstore; using namespace qpid; using namespace qpid::broker; @@ -53,7 +55,7 @@ QPID_AUTO_TEST_SUITE(TransactionalTest) const string test_filename("TransactionalTest"); const char* tdp = getenv("TMP_DATA_DIR"); -const string test_dir(tdp && strlen(tdp) > 0 ? tdp : "/tmp/TransactionalTest"); +const string test_dir(tdp && strlen(tdp) > 0 ? tdp : "/var/tmp/TransactionalTest"); // Test txn context which has special setCompleteFailure() method which prevents entire "txn complete" process from hapenning class TestTxnCtxt : public TxnCtxt @@ -141,7 +143,8 @@ void restart() sys::Timer t; DtxManager mgr(t); mgr.setStore (store.get()); - RecoveryManagerImpl recovery(*queues, exchanges, links, mgr, br.getProtocolRegistry()); + RecoveredObjects ro; + RecoveryManagerImpl recovery(*queues, exchanges, links, mgr, br.getProtocolRegistry(), ro); store->recover(recovery); queueA = queues->find(nameA); |
