29#include <gtest/gtest.h>
57 std::string
dirName =
"/tmp/temp_dir_test_XXXXXX";
60 using ::testing::Test::Test;
89 [[maybe_unused]]
char* ret = mkdtemp(
dirName.data());
90 assert(ret !=
nullptr);
100 [[maybe_unused]]
int success = rmdir(
dirName.c_str());
101 assert(success == 0);
static const char * baseFilename
Fixture class that handles temporary directory creation.
std::string getDirName() const
Get the name of the directory we have created on SetUp.
std::string getCptPath() const
Get the path to the checkpoint file.
void simulateSerialization(std::string contents) const
Create a cpt file with the contents specified by the string.
std::string dirName
The name of the temporary directory.
Bitfield< 2, 1 > contents
Copyright (c) 2024 Arm Limited All rights reserved.