From 46420f040e687450ec134c30c86f24bef48eb588 Mon Sep 17 00:00:00 2001 From: Ammar ELWazir Date: Thu, 22 Jun 2023 14:27:01 +0000 Subject: [PATCH] Fixing V2 tests Change-Id: Ib25502c6ca6cdfdcd40122f811902293a6bb2165 --- tests-v2/featuretests/profiler/profiler_gtest.cpp | 2 +- tests-v2/featuretests/tracer/tracer_gtest.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests-v2/featuretests/profiler/profiler_gtest.cpp b/tests-v2/featuretests/profiler/profiler_gtest.cpp index 6797587c91..1311a190ff 100644 --- a/tests-v2/featuretests/profiler/profiler_gtest.cpp +++ b/tests-v2/featuretests/profiler/profiler_gtest.cpp @@ -821,7 +821,7 @@ TEST_F(DerivedMetricsReuseTest, WhenRunningRepeatedBaseMetricsAPIsWorkFine) { counters.emplace_back("GRBM_GUI_ACTIVE"); counters.emplace_back("ALUStalledByLDS"); - CheckApi(rocprofiler_create_session(ROCPROFILER_KERNEL_REPLAY_MODE, &session_id)); + CheckApi(rocprofiler_create_session(ROCPROFILER_NONE_REPLAY_MODE, &session_id)); rocprofiler_buffer_id_t buffer_id; CheckApi(rocprofiler_create_buffer(session_id, FlushCallback, 0x9999, &buffer_id)); diff --git a/tests-v2/featuretests/tracer/tracer_gtest.cpp b/tests-v2/featuretests/tracer/tracer_gtest.cpp index 3dcb4d39bf..c55224814c 100644 --- a/tests-v2/featuretests/tracer/tracer_gtest.cpp +++ b/tests-v2/featuretests/tracer/tracer_gtest.cpp @@ -33,12 +33,12 @@ std::string binary_path; std::string profiler_api_lib_path = ""; static void init_test_path() { - metrics_path = "libexec/rocprofiler/counters/derived_counters.xml"; if (is_installed_path()) { running_path = "share/rocprofiler/tracer/runTracerFeatureTests"; lib_path = "lib/rocprofiler/librocprofiler_tool.so"; golden_trace_path = "share/rocprofiler/tests/featuretests/tracer/apps/goldentraces/"; test_app_path = "share/rocprofiler/tests/featuretests/tracer/apps/"; + metrics_path = "libexec/rocprofiler/counters/derived_counters.xml"; binary_path = "bin/rocprofv2"; profiler_api_lib_path = "/lib"; } else { @@ -46,6 +46,7 @@ static void init_test_path() { lib_path = "librocprofiler_tool.so"; golden_trace_path = "tests-v2/featuretests/tracer/apps/goldentraces/"; test_app_path = "tests-v2/featuretests/tracer/apps/"; + metrics_path = "counters/derived_counters.xml"; binary_path = "rocprofv2"; } }