Disable tests for TSan v2
These are tests that fail and that I haven't been able to suppress. I assume they're caused by the same bug in TSan v2 as described in webrtc:2259. BUG=2259,2334 TEST=Ran the tests similar to the instructions in the bugs, passed 100 iterations. R=andrew@webrtc.org, hta@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2250004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4787 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
967bfff54d
commit
d8a9b86671
@ -20,6 +20,10 @@ bool NullRunFunction(void* obj) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Disable for TSan v2, see
|
||||
// https://code.google.com/p/webrtc/issues/detail?id=2259 for details.
|
||||
#if !defined(THREAD_SANITIZER)
|
||||
|
||||
TEST(ThreadTest, StartStop) {
|
||||
ThreadWrapper* thread = ThreadWrapper::CreateThread(&NullRunFunction, NULL);
|
||||
unsigned int id = 42;
|
||||
@ -50,4 +54,6 @@ TEST(ThreadTest, RunFunctionIsCalled) {
|
||||
delete thread;
|
||||
}
|
||||
|
||||
#endif // if !defined(THREAD_SANITIZER)
|
||||
|
||||
} // namespace webrtc
|
||||
|
@ -23,6 +23,10 @@
|
||||
namespace webrtc {
|
||||
namespace test {
|
||||
|
||||
// Disable for TSan v2, see
|
||||
// https://code.google.com/p/webrtc/issues/detail?id=2334 for details.
|
||||
#if !defined(THREAD_SANITIZER)
|
||||
|
||||
TEST(UdpSocketManager, CreateCallsInitAndDoesNotLeakMemory) {
|
||||
int32_t id = 42;
|
||||
uint8_t threads = 1;
|
||||
@ -80,5 +84,7 @@ TEST(UdpSocketManager, UnremovedSocketsGetCollectedAtManagerDeletion) {
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif // if !defined(THREAD_SANITIZER)
|
||||
|
||||
} // namespace test
|
||||
} // namespace webrtc
|
||||
|
@ -108,6 +108,10 @@ private:
|
||||
std::vector<MockUdpSocketWrapper*> sockets_created_;
|
||||
};
|
||||
|
||||
// Disable for TSan v2, see
|
||||
// https://code.google.com/p/webrtc/issues/detail?id=2334 for details.
|
||||
#if !defined(THREAD_SANITIZER)
|
||||
|
||||
TEST_F(UDPTransportTest, CreateTransport) {
|
||||
int32_t id = 0;
|
||||
uint8_t threads = 1;
|
||||
@ -115,6 +119,8 @@ TEST_F(UDPTransportTest, CreateTransport) {
|
||||
UdpTransport::Destroy(transport);
|
||||
}
|
||||
|
||||
#endif // if !defined(THREAD_SANITIZER)
|
||||
|
||||
// This test verifies that the mock_socket is not called from the constructor.
|
||||
TEST_F(UDPTransportTest, ConstructorDoesNotCreateSocket) {
|
||||
int32_t id = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user