Skip to content

Commit

Permalink
Skip gpu_hlo_runner_test if input is not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
mmakevic-amd committed Nov 20, 2024
1 parent 430d8c3 commit 381195a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xla/service/gpu/tests/gpu_hlo_runner_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ class HloRunnerTest : public GpuCodegenTest {};
TEST_F(HloRunnerTest, RunSingle) {

std::ifstream ifs("input.hlo");
ASSERT_TRUE(ifs.good());
if(ifs.fail()) {
GTEST_SKIP() << "No input HLO file provided!";
}

std::stringstream buffer;
buffer << ifs.rdbuf();
Expand Down

0 comments on commit 381195a

Please sign in to comment.