summaryrefslogtreecommitdiff
path: root/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
commitdd86a8562275d411ba6af54b6651154b6abc08ef (patch)
treee7bd5e5ed838f041857e2f77461ad3f5759448e7 /cpp/src/tests
parentabf98a7ed4bd2d08d88b7f4f5d753b2e6d6dceb2 (diff)
downloadqpid-python-dd86a8562275d411ba6af54b6651154b6abc08ef.tar.gz
Some tests and fixes for dtx preview.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@544522 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests')
-rw-r--r--cpp/src/tests/DtxWorkRecordTest.cpp6
-rwxr-xr-xcpp/src/tests/python_tests2
2 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/tests/DtxWorkRecordTest.cpp b/cpp/src/tests/DtxWorkRecordTest.cpp
index fc1e536ce3..d7d151f8d6 100644
--- a/cpp/src/tests/DtxWorkRecordTest.cpp
+++ b/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/cpp/src/tests/python_tests b/cpp/src/tests/python_tests
index dbf56a512a..2c0b6b2071 100755
--- a/cpp/src/tests/python_tests
+++ b/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