Searched defs:scoped_test_env (Results 1 – 2 of 2) sorted by relevance
125 struct scoped_test_env struct127 scoped_test_env() : test_root(random_env_path()) in scoped_test_env() argument130 ~scoped_test_env() in ~scoped_test_env() argument136 fs::path make_env_path(std::string p) { return sanitize_path(p); } in make_env_path()138 std::string sanitize_path(std::string raw) { in sanitize_path()150 std::string create_file(std::string filename, std::size_t size = 0) { in create_file()160 std::string create_dir(std::string filename) { in create_dir()166 std::string create_symlink(std::string source, std::string to) { in create_symlink()173 std::string create_hardlink(std::string source, std::string to) { in create_hardlink()180 std::string create_fifo(std::string file) { in create_fifo()[all …]
150 struct scoped_test_env struct152 scoped_test_env() : test_root(available_cwd_path()) { in scoped_test_env() function170 ~scoped_test_env() { in ~scoped_test_env() argument208 scoped_test_env & operator=(scoped_test_env const &) = delete; argument210 fs::path make_env_path(std::string p) { return sanitize_path(p); } in make_env_path()212 std::string sanitize_path(std::string raw) { in sanitize_path()230 std::string filename = sanitize_path(filename_path.string());245 FILE* file = utils::fopen64(filename.c_str(), "w" FOPEN_CLOEXEC_FLAG);264 std::string create_dir(fs::path filename_path) { in create_dir()281 int ret = utils::symlink(source.c_str(), to.c_str(), is_dir);[all …]