mirror of https://github.com/rusefi/rusefi.git
only:portable mkdir?
This commit is contained in:
parent
f56cc4939a
commit
3cb207bb12
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue