Author: aconway
Date: Thu Apr 17 17:54:14 2008
New Revision: 649339

URL: http://svn.apache.org/viewvc?rev=649339&view=rev
Log:
src/tests/python_tests: fix exit status if QPID_NO_PREVIEW is set.
src/qpid/framing/AMQFrame.h: frame header setters/getters with 0-10 naming.

Modified:
    incubator/qpid/trunk/qpid/cpp/src/qpid/framing/AMQFrame.h
    incubator/qpid/trunk/qpid/cpp/src/tests/python_tests

Modified: incubator/qpid/trunk/qpid/cpp/src/qpid/framing/AMQFrame.h
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpid/framing/AMQFrame.h?rev=649339&r1=649338&r2=649339&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpid/framing/AMQFrame.h (original)
+++ incubator/qpid/trunk/qpid/cpp/src/qpid/framing/AMQFrame.h Thu Apr 17 
17:54:14 2008
@@ -80,6 +80,20 @@
     bool decode(Buffer& buffer); 
     uint32_t size() const;
 
+    // 0-10 terminology: first/last frame (in segment) first/last segment (in 
assembly)
+
+    bool isFirstSegment() const { return bof; }
+    bool isLastSegment() const { return eof; }
+    bool isFirstFrame() const { return bos; }
+    bool isLastFrame() const { return eos; }
+
+    void setFirstSegment(bool set=true) { bof = set; }
+    void setLastSegment(bool set=true) { eof = set; }
+    void setFirstFrame(bool set=true) { bos = set; }
+    void setLastFrame(bool set=true) { eos = set; }
+
+    // 0-9 terminology: beginning/end of frameset, beginning/end of segment.
+
     bool getBof() const { return bof; }
     void setBof(bool isBof) { bof = isBof; }
     bool getEof() const { return eof; }

Modified: incubator/qpid/trunk/qpid/cpp/src/tests/python_tests
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/tests/python_tests?rev=649339&r1=649338&r2=649339&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/tests/python_tests (original)
+++ incubator/qpid/trunk/qpid/cpp/src/tests/python_tests Thu Apr 17 17:54:14 
2008
@@ -12,7 +12,7 @@
 if test -d ../../../python ;  then
     cd ../../../python
     run 0-10-errata cpp_failing_0-10.txt
-    test -z "$QPID_NO_PREVIEW" && run ../specs/amqp.0-10-preview.xml 
cpp_failing_0-10_preview.txt
+    if test -z "$QPID_NO_PREVIEW" ; then run ../specs/amqp.0-10-preview.xml 
cpp_failing_0-10_preview.txt; fi
 else
     echo Warning: python tests not found.
 fi


Reply via email to