From 032c06db9a15131dd5e3e55fd6b7d4a4e2b95118 Mon Sep 17 00:00:00 2001 From: "Madsen, Jonathan" Date: Sun, 27 Apr 2025 22:42:10 -0500 Subject: [PATCH] Fix evaulate_ast.evaulate_hybrid_counters test (#377) - broken by #348 Co-authored-by: Jonathan R. Madsen --- .../rocprofiler-sdk/counters/tests/evaluate_ast_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/lib/rocprofiler-sdk/counters/tests/evaluate_ast_test.cpp b/source/lib/rocprofiler-sdk/counters/tests/evaluate_ast_test.cpp index 0eb792e5e9..6f09312c30 100644 --- a/source/lib/rocprofiler-sdk/counters/tests/evaluate_ast_test.cpp +++ b/source/lib/rocprofiler-sdk/counters/tests/evaluate_ast_test.cpp @@ -547,8 +547,8 @@ TEST(evaulate_ast, evaulate_hybrid_counters) std::unordered_map metrics = { {"VOORHEES", Metric("gfx9", "VOORHEES", "a", "a", "a", "", "", 0)}, - {"KRUEGER", Metric("gfx9", "KRUEGER", "a", "a", "a", "", "", 1)}, - {"MYERS", Metric("gfx9", "MYERS", "a", "a", "a", "", "", 2)}, + {"KRUEGER", Metric("gfx9", "KRUEGER", "SQ", "a", "a", "", "", 1)}, + {"MYERS", Metric("gfx9", "MYERS", "SQ", "a", "a", "", "", 2)}, {"BATES", Metric("gfx9", "BATES", "a", "a", "a", "accumulate(VOORHEES,NONE)", "", 3)}, {"KRAMER", Metric("gfx9", "KRAMER", "a", "a", "a", "accumulate(KRUEGER,LOW_RES)", "", 4)}, {"TORRANCE", @@ -563,7 +563,7 @@ TEST(evaulate_ast, evaulate_hybrid_counters) for(const auto& [val, metric] : metrics) { RawAST* ast = nullptr; - auto buf = yy_scan_string(metric.expression().empty() ? metric.name().c_str() + auto* buf = yy_scan_string(metric.expression().empty() ? metric.name().c_str() : metric.expression().c_str()); yyparse(&ast); ASSERT_TRUE(ast) << metric.expression() << " " << metric.name();