diff --git a/tensorflow/compiler/xla/service/BUILD b/tensorflow/compiler/xla/service/BUILD index 9152d135c0a..61f72e78dad 100755 --- a/tensorflow/compiler/xla/service/BUILD +++ b/tensorflow/compiler/xla/service/BUILD @@ -2526,8 +2526,6 @@ cc_library( tf_cc_test( name = "hlo_execution_profile_test", srcs = ["hlo_execution_profile_test.cc"], - # TODO(b/148275965) The test fails on macOS. - tags = ["nomac"], deps = [ ":cpu_plugin", ":hlo_cost_analysis", diff --git a/tensorflow/compiler/xla/service/hlo_execution_profile_test.cc b/tensorflow/compiler/xla/service/hlo_execution_profile_test.cc index ce4239ff927..57fc5ec0748 100644 --- a/tensorflow/compiler/xla/service/hlo_execution_profile_test.cc +++ b/tensorflow/compiler/xla/service/hlo_execution_profile_test.cc @@ -66,9 +66,9 @@ TEST_F(HloExecutionProfileTest, Basic) { EXPECT_THAT(execution_profile.ToString( backend().default_stream_executor()->GetDeviceDescription()), - AllOf(ContainsRegex(StrCat(dot_cycles, R"(\b.*%)", + AllOf(ContainsRegex(StrCat(dot_cycles, " cycles.*%", dot_instruction->name())), - ContainsRegex(StrCat(add_cycles, R"(\b.*%)", + ContainsRegex(StrCat(add_cycles, " cycles.*%", add_instruction->name())))); } } // namespace