Adding suppression for race in stats collector test.
See bug for more info. This race is benign, and only exists because a
method is virtual so it can be mocked for testing.
BUG=webrtc:7221
NOTRY=True
TBR=hbos@webrtc.org
Review-Url: https://codereview.webrtc.org/2711783005
Cr-Commit-Position: refs/heads/master@{#16813}
diff --git a/tools-webrtc/sanitizers/tsan_suppressions_webrtc.cc b/tools-webrtc/sanitizers/tsan_suppressions_webrtc.cc
index b439322..356caf2 100644
--- a/tools-webrtc/sanitizers/tsan_suppressions_webrtc.cc
+++ b/tools-webrtc/sanitizers/tsan_suppressions_webrtc.cc
@@ -80,6 +80,11 @@
// https://code.google.com/p/libyuv/issues/detail?id=508
"race:InitCpuFlags\n"
+// Test-only race due to PeerConnection::session() being virtual for testing.
+// The stats collector may call session() before or after the destructor begins
+// executing, which modifies the vtable.
+"race:*RTCStatsIntegrationTest_GetsStatsWhileDestroyingPeerConnections_Test::TestBody\n"
+
// End of suppressions.
; // Please keep this semicolon.