Bug 1806946 - Skip GTests which fail when run under TSAN. r=profiler-reviewers,dom-storage-reviewers,tnikkel,xpcom-reviewers,ipc-reviewers,mccr8,janv,webrtc-reviewers,pehrsons,canaltinova

Differential Revision: https://phabricator.services.mozilla.com/D209175
This commit is contained in:
Ryan VanderMeulen 2024-05-02 13:09:07 +00:00
parent 3a0845c7c5
commit 0e07c8c08e
9 changed files with 62 additions and 23 deletions

View file

@ -6,10 +6,15 @@
if CONFIG["OS_TARGET"] != "Android": if CONFIG["OS_TARGET"] != "Android":
UNIFIED_SOURCES += [ UNIFIED_SOURCES += [
"TestMultiWriterQueue.cpp",
"TestRollingNumber.cpp", "TestRollingNumber.cpp",
] ]
# Bug 1894309 - Fails under TSAN
if not CONFIG["MOZ_TSAN"]:
UNIFIED_SOURCES += [
"TestMultiWriterQueue.cpp",
]
include("/ipc/chromium/chromium-config.mozbuild") include("/ipc/chromium/chromium-config.mozbuild")
LOCAL_INCLUDES += [ LOCAL_INCLUDES += [

View file

@ -24,7 +24,6 @@ UNIFIED_SOURCES += [
"MockMediaResource.cpp", "MockMediaResource.cpp",
"TestAudioBuffer.cpp", "TestAudioBuffer.cpp",
"TestAudioBuffers.cpp", "TestAudioBuffers.cpp",
"TestAudioCallbackDriver.cpp",
"TestAudioCompactor.cpp", "TestAudioCompactor.cpp",
"TestAudioDecoderInputTrack.cpp", "TestAudioDecoderInputTrack.cpp",
"TestAudioInputSource.cpp", "TestAudioInputSource.cpp",
@ -35,7 +34,6 @@ UNIFIED_SOURCES += [
"TestAudioSegment.cpp", "TestAudioSegment.cpp",
"TestAudioSinkWrapper.cpp", "TestAudioSinkWrapper.cpp",
"TestAudioTrackEncoder.cpp", "TestAudioTrackEncoder.cpp",
"TestAudioTrackGraph.cpp",
"TestBenchmarkStorage.cpp", "TestBenchmarkStorage.cpp",
"TestBitWriter.cpp", "TestBitWriter.cpp",
"TestBlankVideoDataCreator.cpp", "TestBlankVideoDataCreator.cpp",
@ -74,6 +72,13 @@ UNIFIED_SOURCES += [
"YUVBufferGenerator.cpp", "YUVBufferGenerator.cpp",
] ]
# Bug 1894342 - Fails under TSAN
if not CONFIG["MOZ_TSAN"]:
UNIFIED_SOURCES += [
"TestAudioCallbackDriver.cpp",
"TestAudioTrackGraph.cpp",
]
if CONFIG["MOZ_WEBRTC"]: if CONFIG["MOZ_WEBRTC"]:
UNIFIED_SOURCES += [ UNIFIED_SOURCES += [
"TestAudioInputProcessing.cpp", "TestAudioInputProcessing.cpp",

View file

@ -7,34 +7,38 @@
include("/ipc/chromium/chromium-config.mozbuild") include("/ipc/chromium/chromium-config.mozbuild")
if CONFIG["OS_TARGET"] != "WINNT": if CONFIG["OS_TARGET"] != "WINNT":
if CONFIG["OS_TARGET"] != "Android":
SOURCES += [
"ice_unittest.cpp",
]
SOURCES += [ SOURCES += [
"buffered_stun_socket_unittest.cpp", "buffered_stun_socket_unittest.cpp",
"multi_tcp_socket_unittest.cpp", "multi_tcp_socket_unittest.cpp",
"nrappkit_unittest.cpp",
"proxy_tunnel_socket_unittest.cpp", "proxy_tunnel_socket_unittest.cpp",
"rlogconnector_unittest.cpp",
"runnable_utils_unittest.cpp", "runnable_utils_unittest.cpp",
"simpletokenbucket_unittest.cpp", "simpletokenbucket_unittest.cpp",
"sockettransportservice_unittest.cpp",
"stunserver.cpp", "stunserver.cpp",
"test_nr_socket_ice_unittest.cpp", "test_nr_socket_ice_unittest.cpp",
"test_nr_socket_unittest.cpp", "test_nr_socket_unittest.cpp",
"TestSyncRunnable.cpp", "TestSyncRunnable.cpp",
"transport_unittests.cpp",
"turn_unittest.cpp", "turn_unittest.cpp",
"webrtcproxychannel_unittest.cpp",
] ]
if CONFIG["MOZ_SCTP"]: # Bug 1894419 - Various failures under TSAN
SOURCES += [ if not CONFIG["MOZ_TSAN"]:
"sctp_unittest.cpp", if CONFIG["OS_TARGET"] != "Android":
] SOURCES += [
"ice_unittest.cpp",
]
if CONFIG["MOZ_SCTP"]:
SOURCES += [
"sctp_unittest.cpp",
]
SOURCES += [
"nrappkit_unittest.cpp",
"rlogconnector_unittest.cpp",
"sockettransportservice_unittest.cpp",
"transport_unittests.cpp",
"webrtcproxychannel_unittest.cpp",
]
for var in ("HAVE_STRDUP", "NR_SOCKET_IS_VOID_PTR", "SCTP_DEBUG"): for var in ("HAVE_STRDUP", "NR_SOCKET_IS_VOID_PTR", "SCTP_DEBUG"):
DEFINES[var] = True DEFINES[var] = True

View file

@ -12,7 +12,6 @@ UNIFIED_SOURCES = [
"TestAnimationFrameBuffer.cpp", "TestAnimationFrameBuffer.cpp",
"TestBlendAnimationFilter.cpp", "TestBlendAnimationFilter.cpp",
"TestCopyOnWrite.cpp", "TestCopyOnWrite.cpp",
"TestDecoders.cpp",
"TestDecodersPerf.cpp", "TestDecodersPerf.cpp",
"TestDecodeToSurface.cpp", "TestDecodeToSurface.cpp",
"TestDeinterlacingFilter.cpp", "TestDeinterlacingFilter.cpp",
@ -29,6 +28,12 @@ UNIFIED_SOURCES = [
"TestSwizzleFilter.cpp", "TestSwizzleFilter.cpp",
] ]
# Bug 1894284 - Fails under TSAN
if not CONFIG["MOZ_TSAN"]:
UNIFIED_SOURCES += [
"TestDecoders.cpp",
]
TEST_HARNESS_FILES.gtest += [ TEST_HARNESS_FILES.gtest += [
"animated-with-extra-image-sub-blocks.gif", "animated-with-extra-image-sub-blocks.gif",
"blend.avif", "blend.avif",

View file

@ -8,9 +8,14 @@ Library("ipcchromiumtest")
SOURCES += [ SOURCES += [
"name_unittest.cc", "name_unittest.cc",
"ports_unittest.cc",
] ]
# Bug 1837550 - Fails under TSAN
if not CONFIG["MOZ_TSAN"]:
SOURCES += [
"ports_unittest.cc",
]
include("/ipc/chromium/chromium-config.mozbuild") include("/ipc/chromium/chromium-config.mozbuild")
FINAL_LIBRARY = "xul-gtest" FINAL_LIBRARY = "xul-gtest"

View file

@ -12,7 +12,6 @@ UNIFIED_SOURCES += [
"test_asyncStatementExecution_transaction.cpp", "test_asyncStatementExecution_transaction.cpp",
"test_binding_params.cpp", "test_binding_params.cpp",
"test_file_perms.cpp", "test_file_perms.cpp",
"test_interruptSynchronousConnection.cpp",
"test_mutex.cpp", "test_mutex.cpp",
"test_spinningSynchronousClose.cpp", "test_spinningSynchronousClose.cpp",
"test_statement_scoper.cpp", "test_statement_scoper.cpp",
@ -22,6 +21,12 @@ UNIFIED_SOURCES += [
"test_unlock_notify.cpp", "test_unlock_notify.cpp",
] ]
# Bug 1894261 - Fails under TSAN
if not CONFIG["MOZ_TSAN"]:
UNIFIED_SOURCES += [
"test_interruptSynchronousConnection.cpp",
]
if ( if (
CONFIG["MOZ_DEBUG"] CONFIG["MOZ_DEBUG"]
and CONFIG["OS_ARCH"] not in ("WINNT") and CONFIG["OS_ARCH"] not in ("WINNT")

View file

@ -12,7 +12,11 @@ UNIFIED_SOURCES += [
"TestProfileLock.cpp", "TestProfileLock.cpp",
] ]
if CONFIG["OS_ARCH"] == "Linux" and CONFIG["OS_TARGET"] != "Android": if (
CONFIG["OS_ARCH"] == "Linux"
and CONFIG["OS_TARGET"] != "Android"
and not CONFIG["MOZ_TSAN"] # Bug 1894417
):
UNIFIED_SOURCES += [ UNIFIED_SOURCES += [
"TestProfileLockRetry.cpp", "TestProfileLockRetry.cpp",
] ]

View file

@ -30,7 +30,8 @@ LOCAL_INCLUDES += [
"/tools/profiler/lul", "/tools/profiler/lul",
] ]
if CONFIG["OS_TARGET"] != "Android": # Bug 1885381 - Hangs/timeouts under TSAN
if CONFIG["OS_TARGET"] != "Android" and not CONFIG["MOZ_TSAN"]:
UNIFIED_SOURCES += [ UNIFIED_SOURCES += [
"GeckoProfiler.cpp", "GeckoProfiler.cpp",
"ThreadProfileTest.cpp", "ThreadProfileTest.cpp",

View file

@ -66,7 +66,6 @@ UNIFIED_SOURCES += [
"TestTaskQueue.cpp", "TestTaskQueue.cpp",
"TestTextFormatter.cpp", "TestTextFormatter.cpp",
"TestThreadManager.cpp", "TestThreadManager.cpp",
"TestThreadPool.cpp",
"TestThreadPoolListener.cpp", "TestThreadPoolListener.cpp",
"TestThreadUtils.cpp", "TestThreadUtils.cpp",
"TestThrottledEventQueue.cpp", "TestThrottledEventQueue.cpp",
@ -76,6 +75,12 @@ UNIFIED_SOURCES += [
"TestVariant.cpp", "TestVariant.cpp",
] ]
# Bug 1894540 - Fails under TSAN
if not CONFIG["MOZ_TSAN"]:
UNIFIED_SOURCES += [
"TestThreadPool.cpp",
]
if CONFIG["OS_TARGET"] != "Android": if CONFIG["OS_TARGET"] != "Android":
UNIFIED_SOURCES += [ UNIFIED_SOURCES += [
"TestPipes.cpp", "TestPipes.cpp",