diff --git a/xla/service/gpu/fusions/triton/triton_support_test.cc b/xla/service/gpu/fusions/triton/triton_support_test.cc index 3f926c70ef182..7a337ab24ec28 100644 --- a/xla/service/gpu/fusions/triton/triton_support_test.cc +++ b/xla/service/gpu/fusions/triton/triton_support_test.cc @@ -217,7 +217,10 @@ class TritonSupportTest : public TritonSupportTestBase { try { run_triton_codegen().IgnoreError(); } catch (...) { abort(); }, - ""); + // It's not possible to find stable matching patterns for all + // aborting code paths that occur here, so we at least make sure + // that we don't interpret sanitizer errors as success. + ::testing::Not(::testing::HasSubstr("Sanitizer:"))); } else { EXPECT_THAT(run_triton_codegen(), Not(IsOk()));