Disable failing modules_unittests for UBSan.

BUG=webrtc:5820
TBR=pbos@webrtc.org

Review URL: https://codereview.webrtc.org/1915813002 .

Cr-Commit-Position: refs/heads/master@{#12482}
This commit is contained in:
kjellander@webrtc.org 2016-04-25 06:43:43 +02:00
parent 65440fb92a
commit c23bf2e54d
3 changed files with 36 additions and 6 deletions

View File

@ -514,10 +514,11 @@ void NetEqDecodingTest::PopulateCng(int frame_index,
*payload_len = 1; // Only noise level, no spectral parameters.
}
// Disabled for UBSan: https://bugs.chromium.org/p/webrtc/issues/detail?id=5820
#if !defined(WEBRTC_IOS) && defined(WEBRTC_NETEQ_UNITTEST_BITEXACT) && \
(defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISACFX)) && \
defined(WEBRTC_CODEC_ILBC) && defined(WEBRTC_CODEC_G722) && \
!defined(WEBRTC_ARCH_ARM64)
!defined(WEBRTC_ARCH_ARM64) && !defined(UNDEFINED_SANITIZER)
#define MAYBE_TestBitExactness TestBitExactness
#else
#define MAYBE_TestBitExactness DISABLED_TestBitExactness
@ -552,9 +553,10 @@ TEST_F(NetEqDecodingTest, MAYBE_TestBitExactness) {
}
}
// Disabled for UBSan: https://bugs.chromium.org/p/webrtc/issues/detail?id=5820
#if !defined(WEBRTC_IOS) && !defined(WEBRTC_ANDROID) && \
defined(WEBRTC_NETEQ_UNITTEST_BITEXACT) && \
defined(WEBRTC_CODEC_OPUS)
defined(WEBRTC_CODEC_OPUS) && !defined(UNDEFINED_SANITIZER)
#define MAYBE_TestOpusBitExactness TestOpusBitExactness
#else
#define MAYBE_TestOpusBitExactness DISABLED_TestOpusBitExactness

View File

@ -1847,17 +1847,35 @@ void ApmTest::VerifyDebugDumpTest(Format format) {
remove(limited_filename.c_str());
}
TEST_F(ApmTest, VerifyDebugDumpInt) {
// Disabled for UBSan: https://bugs.chromium.org/p/webrtc/issues/detail?id=5820
#ifdef UNDEFINED_SANITIZER
#define MAYBE_VerifyDebugDumpInt DISABLED_VerifyDebugDumpInt
#else
#define MAYBE_VerifyDebugDumpInt VerifyDebugDumpInt
#endif
TEST_F(ApmTest, MAYBE_VerifyDebugDumpInt) {
VerifyDebugDumpTest(kIntFormat);
}
TEST_F(ApmTest, VerifyDebugDumpFloat) {
// Disabled for UBSan: https://bugs.chromium.org/p/webrtc/issues/detail?id=5820
#ifdef UNDEFINED_SANITIZER
#define MAYBE_VerifyDebugDumpFloat DISABLED_VerifyDebugDumpFloat
#else
#define MAYBE_VerifyDebugDumpFloat VerifyDebugDumpFloat
#endif
TEST_F(ApmTest, MAYBE_VerifyDebugDumpFloat) {
VerifyDebugDumpTest(kFloatFormat);
}
#endif
// TODO(andrew): expand test to verify output.
TEST_F(ApmTest, DebugDump) {
// Disabled for UBSan: https://bugs.chromium.org/p/webrtc/issues/detail?id=5820
#ifdef UNDEFINED_SANITIZER
#define MAYBE_DebugDump DISABLED_DebugDump
#else
#define MAYBE_DebugDump DebugDump
#endif
TEST_F(ApmTest, MAYBE_DebugDump) {
const std::string filename =
test::TempFilename(test::OutputPath(), "debug_aec");
EXPECT_EQ(apm_->kNullPointerError,
@ -1890,7 +1908,13 @@ TEST_F(ApmTest, DebugDump) {
}
// TODO(andrew): expand test to verify output.
TEST_F(ApmTest, DebugDumpFromFileHandle) {
// Disabled for UBSan: https://bugs.chromium.org/p/webrtc/issues/detail?id=5820
#ifdef UNDEFINED_SANITIZER
#define MAYBE_DebugDumpFromFileHandle DISABLED_DebugDumpFromFileHandle
#else
#define MAYBE_DebugDumpFromFileHandle DebugDumpFromFileHandle
#endif
TEST_F(ApmTest, MAYBE_DebugDumpFromFileHandle) {
FILE* fid = NULL;
EXPECT_EQ(apm_->kNullPointerError, apm_->StartDebugRecording(fid, -1));
const std::string filename =

View File

@ -262,6 +262,8 @@ void DebugDumpTest::VerifyDebugDump(const std::string& in_filename) {
}
}
// Disabled for UBSan: https://bugs.chromium.org/p/webrtc/issues/detail?id=5820
#ifndef UNDEFINED_SANITIZER
TEST_F(DebugDumpTest, SimpleCase) {
Config config;
DebugDumpGenerator generator(config);
@ -525,5 +527,7 @@ TEST_F(DebugDumpTest, TransientSuppressionOn) {
VerifyDebugDump(generator.dump_file_name());
}
#endif // !UNDEFINED_SANITIZER
} // namespace test
} // namespace webrtc