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()); }