From 24192f94c46dd4fbd63b1c0e154abe5c22a3f501 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 24 Dec 2024 21:45:32 -0500 Subject: [PATCH] unit_tests "logic analyzer" style output #6403 only:better file name --- unit_tests/test-framework/engine_test_helper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unit_tests/test-framework/engine_test_helper.cpp b/unit_tests/test-framework/engine_test_helper.cpp index 802c338d6c..1c7878428f 100644 --- a/unit_tests/test-framework/engine_test_helper.cpp +++ b/unit_tests/test-framework/engine_test_helper.cpp @@ -141,9 +141,10 @@ EngineTestHelper::EngineTestHelper(engine_type_e engineType, configuration_callb EngineTestHelper::~EngineTestHelper() { // Write history to file extern bool hasInitGtest; + auto testInfo = ::testing::UnitTest::GetInstance()->current_test_info(); if (hasInitGtest) { std::stringstream filePath; - filePath << "unittest_" << ::testing::UnitTest::GetInstance()->current_test_info()->name() << ".logicdata"; + filePath << "unittest_" << testInfo->test_case_name() << "_" << testInfo->name() << ".logicdata"; writeEvents(filePath.str().c_str()); }