thrift/lib/cpp/test
David Reiss 4199377a7c THRIFT-926. cpp: TFileTransportTest timing slightly more lenient
Several of the TFileTransportTest tests check wall clock time to make
sure the writer thread processes operations quickly enough, and isn't
hanging.  However, this can easily result in false failures if we don't
get enough processor time.  This commit makes a few changes to reduce
the number of these failures.

- No longer fail if a single destructor call takes more than 500us.
  We only require 90% of the calls to complete in 500us.  No call may
  take more than 100ms, though.  With this change, the test passes most
  of the time now, even while an "fbmake opt" task is running in
  parallel.

- In the flush_max_us tests, make sure the writer thread is started
  before we start recording timing.  Otherwise, creating the thread
  could take long enough to throw off the numbers for the first fsync()
  call.

Also tested with the pthread_cond_signal() in the TFileTransport
destructor commented out, to make sure the test still fails properly
when the destructor takes too long.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1005155 13f79535-47bb-0310-9956-ffa450edef68
2010-10-06 17:10:31 +00:00
..
AllProtocolTests.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
AllProtocolTests.tcc THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
Benchmark.cpp THRIFT-922. cpp: Templatize binary and compact protocol 2010-10-06 17:09:56 +00:00
DebugProtoTest_extras.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
DebugProtoTest.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
DenseProtoTest.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
GenericHelpers.h THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
JSONProtoTest.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
Makefile.am THRIFT-926. cpp: Fix destructor behavior of TFileTransport 2010-10-06 17:10:30 +00:00
OptionalRequiredTest.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
SpecializationTest.cpp THRIFT-922. cpp: Templatize binary and compact protocol 2010-10-06 17:09:56 +00:00
TBufferBaseTest.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
TFDTransportTest.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
TFileTransportTest.cpp THRIFT-926. cpp: TFileTransportTest timing slightly more lenient 2010-10-06 17:10:31 +00:00
ThriftTest_extras.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
TMemoryBufferTest.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
TPipedTransportTest.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
TransportTest.cpp THRIFT-926. cpp: remove "standalone" distinction in TZlibTransport 2010-10-06 17:10:27 +00:00
UnitTestMain.cpp THRIFT-503. cpp: Move the tests built by "make check" under lib/cpp 2010-08-31 16:51:19 +00:00
ZlibTest.cpp THRIFT-926. cpp: remove "standalone" distinction in TZlibTransport 2010-10-06 17:10:27 +00:00