diff --git a/third_party/xla/xla/service/gpu/tests/BUILD b/third_party/xla/xla/service/gpu/tests/BUILD index f7f84b2cf22f46..6823cb63c84874 100644 --- a/third_party/xla/xla/service/gpu/tests/BUILD +++ b/third_party/xla/xla/service/gpu/tests/BUILD @@ -939,6 +939,7 @@ xla_test( "//xla:literal", "//xla:literal_util", "//xla/tests:xla_internal_test_main", + "@local_tsl//tsl/lib/core:status_test_util", ], ["@local_tsl//tsl/platform:test_main"], # b/317293391 ), diff --git a/third_party/xla/xla/service/gpu/tests/gpu_sparse_dot_test.cc b/third_party/xla/xla/service/gpu/tests/gpu_sparse_dot_test.cc index f59ff99344434f..5ea691967fa6b8 100644 --- a/third_party/xla/xla/service/gpu/tests/gpu_sparse_dot_test.cc +++ b/third_party/xla/xla/service/gpu/tests/gpu_sparse_dot_test.cc @@ -27,6 +27,7 @@ limitations under the License. #include "xla/literal.h" #include "xla/literal_util.h" #include "xla/service/gpu/tests/gpu_codegen_test.h" +#include "tsl/lib/core/status_test_util.h" namespace xla { namespace gpu { @@ -131,10 +132,10 @@ ENTRY main { Literal dense_rhs = LiteralUtil::CreateR1(absl::MakeSpan(in2)); auto dense_module = ParseAndReturnVerifiedModule(dense_hlo); - EXPECT_OK(dense_module); + TF_EXPECT_OK(dense_module); auto dense_result = Execute(std::move(*dense_module), {&dense_lhs, &dense_rhs}); - EXPECT_OK(dense_result); + TF_EXPECT_OK(dense_result); // Execute sparse dot. const char* kSparseTpl = R"( @@ -155,10 +156,10 @@ ENTRY main { Literal sparse_meta = LiteralUtil::CreateR1(absl::MakeSpan(meta)); auto sparse_module = ParseAndReturnVerifiedModule(sparse_hlo); - EXPECT_OK(sparse_module); + TF_EXPECT_OK(sparse_module); auto sparse_result = Execute(std::move(*sparse_module), {&sparse_lhs, &sparse_rhs, &sparse_meta}); - EXPECT_OK(sparse_result); + TF_EXPECT_OK(sparse_result); // Compare the results. EXPECT_EQ(*dense_result, *sparse_result);