diff --git a/xls/dslx/run_routines/run_routines.h b/xls/dslx/run_routines/run_routines.h index 23c0f82f72..492a43e4b5 100644 --- a/xls/dslx/run_routines/run_routines.h +++ b/xls/dslx/run_routines/run_routines.h @@ -169,7 +169,7 @@ class TestResultData { test_cases_.push_back(std::move(test_case)); } - std::vector failures() { + std::vector GetFailureMessages() const { std::vector failures; for (const auto& test_case : test_cases_) { if (test_case.status == test_xml::RunStatus::kRun && diff --git a/xls/dslx/run_routines/run_routines_test.cc b/xls/dslx/run_routines/run_routines_test.cc index 63f9aba118..bf064783d2 100644 --- a/xls/dslx/run_routines/run_routines_test.cc +++ b/xls/dslx/run_routines/run_routines_test.cc @@ -529,7 +529,7 @@ proc tester_proc { TestResultData result, ParseAndTest(kProgram, "test_module", "test.x", options)); - auto failures = result.failures(); + std::vector failures = result.GetFailureMessages(); EXPECT_EQ(failures.size(), 1); if (GetParam() == RunnerType::kDslxInterpreter) { EXPECT_THAT(failures[0],