tests: Fix SubprocessTest on macOS Monterey and later. (#3812)
On macOS Monterey and later `/var` is symlinked to `/private/var` Add missing `tr_sys_path_resolve(...)` for parent dir in sandbox fixture. Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>
This commit is contained in:
parent
f8fdc6a828
commit
ecc7c185a4
|
@ -134,7 +134,7 @@ protected:
|
|||
|
||||
static std::string create_sandbox(std::string const& parent_dir, std::string const& tmpl)
|
||||
{
|
||||
auto path = fmt::format(FMT_STRING("{:s}/{:s}"sv), parent_dir, tmpl);
|
||||
auto path = fmt::format(FMT_STRING("{:s}/{:s}"sv), tr_sys_path_resolve(parent_dir), tmpl);
|
||||
tr_sys_dir_create_temp(std::data(path));
|
||||
tr_sys_path_native_separators(std::data(path));
|
||||
return path;
|
||||
|
|
Loading…
Reference in New Issue