Skip tests failing with the new version of UBSan.

Bug: webrtc:345674542
Change-Id: I24171a6452e66e48683f3edfdde35322e0fe4b8a
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/353940
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Auto-Submit: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Henrik Lundin <henrik.lundin@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#42448}
This commit is contained in:
Mirko Bonadei 2024-06-07 10:16:53 +00:00 committed by WebRTC LUCI CQ
parent 9f6bb625e6
commit cfab6409ae
2 changed files with 10 additions and 0 deletions

View File

@ -54,7 +54,12 @@ TEST_F(VadTest, set_mode_core) {
free(self); free(self);
} }
// TODO(bugs.webrtc.org/345674542): Fix/enable.
#if defined(__has_feature) && __has_feature(undefined_behavior_sanitizer)
TEST_F(VadTest, DISABLED_CalcVad) {
#else
TEST_F(VadTest, CalcVad) { TEST_F(VadTest, CalcVad) {
#endif
VadInstT* self = reinterpret_cast<VadInstT*>(malloc(sizeof(VadInstT))); VadInstT* self = reinterpret_cast<VadInstT*>(malloc(sizeof(VadInstT)));
int16_t speech[kMaxFrameLength]; int16_t speech[kMaxFrameLength];

View File

@ -54,7 +54,12 @@ bool VadTest::ValidRatesAndFrameLengths(int rate, size_t frame_length) {
namespace webrtc { namespace webrtc {
namespace test { namespace test {
// TODO(bugs.webrtc.org/345674542): Fix/enable.
#if defined(__has_feature) && __has_feature(undefined_behavior_sanitizer)
TEST_F(VadTest, DISABLED_ApiTest) {
#else
TEST_F(VadTest, ApiTest) { TEST_F(VadTest, ApiTest) {
#endif
// This API test runs through the APIs for all possible valid and invalid // This API test runs through the APIs for all possible valid and invalid
// combinations. // combinations.