Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1a0253d authored by Yi Kong's avatar Yi Kong Committed by Gerrit Code Review
Browse files

Merge "Suppress ubsan for TestCodecIndexStr test" into main

parents e1b7c4ff 5fb46c92
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -547,8 +547,11 @@ TEST_F_WITH_FLAGS(ProviderInfoTest,
}

TEST_F_WITH_FLAGS(ProviderInfoTest, TestCodecIndexStr,
                  REQUIRES_FLAGS_ENABLED(ACONFIG_FLAG(
                      TEST_BT, a2dp_offload_codec_extensibility))) {
                  REQUIRES_FLAGS_ENABLED(
                      ACONFIG_FLAG(TEST_BT, a2dp_offload_codec_extensibility)))
// The test deliberately triggers undefined behaviour with an out of bound
// index.
__attribute__((no_sanitize("undefined"))) {
  GetProviderInfoForTesting(true, false);

  auto codecInfoArray = test_source_provider_info.codecInfos;