summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-09-03 09:15:35 +0000
committerGordon Sim <gsim@apache.org>2007-09-03 09:15:35 +0000
commitcadb67eb27e00abb493793363dcf37f4d2f563dc (patch)
tree62fc915300adc3929a3130bf098b7628478448a5
parent280badf2e64489a5214bdb2e8c5f7befa1de0e6b (diff)
downloadqpid-python-cadb67eb27e00abb493793363dcf37f4d2f563dc.tar.gz
Fix for QPID-561
Renabled MessageBuilderTest git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@572264 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--cpp/src/qpid/broker/DtxHandlerImpl.cpp10
-rw-r--r--cpp/src/tests/Makefile.am4
-rw-r--r--python/tests_0-10/dtx.py2
3 files changed, 4 insertions, 12 deletions
diff --git a/cpp/src/qpid/broker/DtxHandlerImpl.cpp b/cpp/src/qpid/broker/DtxHandlerImpl.cpp
index e07fdf80bf..15ece77c6f 100644
--- a/cpp/src/qpid/broker/DtxHandlerImpl.cpp
+++ b/cpp/src/qpid/broker/DtxHandlerImpl.cpp
@@ -20,20 +20,12 @@
#include <boost/format.hpp>
#include "Broker.h"
#include "Session.h"
+#include "qpid/framing/constants.h"
using namespace qpid::broker;
using namespace qpid::framing;
using std::string;
-const int XA_RBROLLBACK(1);
-const int XA_RBTIMEOUT(2);
-const int XA_HEURHAZ(3);
-const int XA_HEURCOM(4);
-const int XA_HEURRB(5);
-const int XA_HEURMIX(6);
-const int XA_RDONLY(7);
-const int XA_OK(8);
-
DtxHandlerImpl::DtxHandlerImpl(CoreRefs& parent) : CoreRefs(parent) {}
// DtxDemarcationHandler:
diff --git a/cpp/src/tests/Makefile.am b/cpp/src/tests/Makefile.am
index 9d3d86b091..874a9a448a 100644
--- a/cpp/src/tests/Makefile.am
+++ b/cpp/src/tests/Makefile.am
@@ -93,8 +93,8 @@ broker_unit_tests = \
TxBufferTest \
TxPublishTest \
ValueTest \
- MessageHandlerTest
-# MessageBuilderTest
+ MessageHandlerTest \
+ MessageBuilderTest
#client_unit_tests = \
ClientChannelTest
diff --git a/python/tests_0-10/dtx.py b/python/tests_0-10/dtx.py
index ea587f5998..29a4d3bf0d 100644
--- a/python/tests_0-10/dtx.py
+++ b/python/tests_0-10/dtx.py
@@ -39,7 +39,7 @@ class DtxTests(TestBase):
XA_RBROLLBACK = 1
XA_RBTIMEOUT = 2
- XA_OK = 8
+ XA_OK = 0
tx_counter = 0
def reset_channel(self):