only:portable mkdir?

This commit is contained in:
Andrey 2024-03-21 12:21:05 -04:00
parent f56cc4939a
commit 3cb207bb12
1 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,8 @@
#include "tooth_logger.h"
#include "logicdata.h"
#include "hardware.h"
#include <filesystem>
namespace fs = std::filesystem;
#if EFI_ENGINE_SNIFFER
#include "engine_sniffer.h"
@ -139,7 +141,7 @@ EngineTestHelper::~EngineTestHelper() {
// Write history to file
extern bool hasInitGtest;
if (hasInitGtest) {
mkdir(LOGICDATA_OUTPUT, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
fs::create_directories(LOGICDATA_OUTPUT);
std::stringstream filePath;
filePath << LOGICDATA_OUTPUT << "/unittest_" << ::testing::UnitTest::GetInstance()->current_test_info()->name() << ".logicdata";
writeEvents(filePath.str().c_str());