blob: 15e3c13a5bc99fcd677e4c312038ae7c3c101d85 [file] [log] [blame]
#include "aos/testing/tmpdir.h"
#include <cstdlib>
#include <string>
namespace aos {
namespace testing {
std::string TestTmpDir() {
const char *tmp_dir = std::getenv("TEST_TMPDIR");
if (tmp_dir != nullptr) {
return tmp_dir;
}
return "/tmp";
}
} // namespace testing
} // namespace aos