(THRIFT-61) Fix "make check" for the C++ library by not doing empty flushes.
authorDavid Reiss <dreiss@apache.org>
Mon, 30 Jun 2008 19:48:04 +0000 (19:48 +0000)
committerDavid Reiss <dreiss@apache.org>
Mon, 30 Jun 2008 19:48:04 +0000 (19:48 +0000)
commit6b082755f0cba0bb8469f5f262f01a4defce348d
tree01e845e548ce303687edf54e2326b16d9223dabd
parentfc0646481faaeccdc88bbd5d61b05a5da91f8a9b
(THRIFT-61) Fix "make check" for the C++ library by not doing empty flushes.

I changed the behavior of TFramedTransport when flush is called without
writing any data to the transport.  This broke the unit test, which was
relying on a weird corner of TFramedTransport's behavior in order to do
some stricter checking.  I altered the unit test to never flush without
writing and added a new test to verfy the "empty flush" behavior.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@672881 13f79535-47bb-0310-9956-ffa450edef68
test/TBufferBaseTest.cpp