From d276a19bff4afbe03d458e82e5ef35c64efe892b Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 5 Jun 2007 15:54:22 +0000 Subject: 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 --- qpid/cpp/src/tests/DtxWorkRecordTest.cpp | 6 +++--- qpid/cpp/src/tests/python_tests | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'qpid/cpp/src/tests') 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 -- cgit v1.2.1