@@ -65,8 +65,7 @@ BOOST_AUTO_TEST_CASE(normalizeCLIPathForVFS_absolute_path)
65
65
66
66
BOOST_AUTO_TEST_CASE (normalizeCLIPathForVFS_relative_path)
67
67
{
68
- TemporaryDirectory tempDir (TEST_CASE_NAME);
69
- boost::filesystem::create_directories (tempDir.path () / " x/y/z" );
68
+ TemporaryDirectory tempDir ({" x/y/z" }, TEST_CASE_NAME);
70
69
TemporaryWorkingDirectory tempWorkDir (tempDir.path () / " x/y/z" );
71
70
72
71
// NOTE: If path to work dir contains symlinks (often the case on macOS), boost might resolve
@@ -253,9 +252,8 @@ BOOST_AUTO_TEST_CASE(normalizeCLIPathForVFS_path_separators)
253
252
254
253
BOOST_AUTO_TEST_CASE (normalizeCLIPathForVFS_should_not_resolve_symlinks)
255
254
{
256
- TemporaryDirectory tempDir (TEST_CASE_NAME);
255
+ TemporaryDirectory tempDir ({ " abc/ " }, TEST_CASE_NAME);
257
256
soltestAssert (tempDir.path ().is_absolute (), " " );
258
- boost::filesystem::create_directories (tempDir.path () / " abc" );
259
257
260
258
if (!createSymlinkIfSupportedByFilesystem (tempDir.path () / " abc" , tempDir.path () / " sym" , true ))
261
259
return ;
@@ -269,9 +267,8 @@ BOOST_AUTO_TEST_CASE(normalizeCLIPathForVFS_should_not_resolve_symlinks)
269
267
270
268
BOOST_AUTO_TEST_CASE (normalizeCLIPathForVFS_should_resolve_symlinks_in_workdir_when_path_is_relative)
271
269
{
272
- TemporaryDirectory tempDir (TEST_CASE_NAME);
270
+ TemporaryDirectory tempDir ({ " abc/ " }, TEST_CASE_NAME);
273
271
soltestAssert (tempDir.path ().is_absolute (), " " );
274
- boost::filesystem::create_directories (tempDir.path () / " abc" );
275
272
276
273
if (!createSymlinkIfSupportedByFilesystem (tempDir.path () / " abc" , tempDir.path () / " sym" , true ))
277
274
return ;
0 commit comments