summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-06-05 15:54:22 +0000
committerGordon Sim <gsim@apache.org>2007-06-05 15:54:22 +0000
commitd276a19bff4afbe03d458e82e5ef35c64efe892b (patch)
treeb3fe8805a90fc358a047bab01f8fc159f1b226df /qpid/cpp/src/tests
parentb3b97381ead5356ec7ca24483ade51594dfd4995 (diff)
downloadqpid-python-d276a19bff4afbe03d458e82e5ef35c64efe892b.tar.gz
Some tests and fixes for dtx preview.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@544522 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests')
-rw-r--r--qpid/cpp/src/tests/DtxWorkRecordTest.cpp6
-rwxr-xr-xqpid/cpp/src/tests/python_tests2
2 files changed, 4 insertions, 4 deletions
diff --git a/qpid/cpp/src/tests/DtxWorkRecordTest.cpp b/qpid/cpp/src/tests/DtxWorkRecordTest.cpp
index fc1e536ce3..d7d151f8d6 100644
--- a/qpid/cpp/src/tests/DtxWorkRecordTest.cpp
+++ b/qpid/cpp/src/tests/DtxWorkRecordTest.cpp
@@ -59,7 +59,7 @@ class DtxWorkRecordTest : public CppUnit::TestCase
work.add(bufferA);
work.add(bufferB);
- work.commit();
+ work.commit(true);
store.check();
CPPUNIT_ASSERT(store.isCommitted());
@@ -93,7 +93,7 @@ class DtxWorkRecordTest : public CppUnit::TestCase
work.add(bufferB);
work.add(bufferC);
- work.commit();
+ work.commit(true);
CPPUNIT_ASSERT(store.isAborted());
store.check();
@@ -125,7 +125,7 @@ class DtxWorkRecordTest : public CppUnit::TestCase
CPPUNIT_ASSERT(work.prepare());
CPPUNIT_ASSERT(store.isPrepared());
- work.commit();
+ work.commit(false);
store.check();
CPPUNIT_ASSERT(store.isCommitted());
opA->check();
diff --git a/qpid/cpp/src/tests/python_tests b/qpid/cpp/src/tests/python_tests
index dbf56a512a..2c0b6b2071 100755
--- a/qpid/cpp/src/tests/python_tests
+++ b/qpid/cpp/src/tests/python_tests
@@ -1,7 +1,7 @@
#!/bin/sh
# Run the python tests.
if test -d ../../../python ; then
- cd ../../../python && ./run-tests -v -s "0-9" -I cpp_failing_0-9.txt $PYTHON_TESTS
+ cd ../../../python && ./run-tests -v -s "0-9" -e ../specs/amqp-dtx-preview.0-9.xml -I cpp_failing_0-9.txt $PYTHON_TESTS
else
echo Warning: python tests not found.
fi