@@ -315,9 +315,10 @@ TEST_F(SFTPUtils, get_full_remote_dir_target__target_exists_not_dir)
315
315
{
316
316
REPLACE (sftp_stat, [](auto , auto path) { return get_dummy_attr (path, SSH_FILEXFER_TYPE_REGULAR); });
317
317
318
- MP_EXPECT_THROW_THAT (
319
- MP_SFTPUTILS.get_remote_dir_target (nullptr , source_path, target_path, false ), mp::SFTPError,
320
- mpt::match_what (StrEq (fmt::format (" cannot overwrite remote non-directory {} with directory" , target_path))));
318
+ MP_EXPECT_THROW_THAT (MP_SFTPUTILS.get_remote_dir_target (nullptr , source_path, target_path, false ),
319
+ mp::SFTPError,
320
+ mpt::match_what (StrEq (
321
+ fmt::format (" cannot overwrite remote non-directory \" {}\" with directory" , target_path))));
321
322
}
322
323
323
324
TEST_F (SFTPUtils, get_full_remote_dir_target__target_not_exists_can_create)
@@ -345,8 +346,9 @@ TEST_F(SFTPUtils, get_full_remote_dir_target__target_not_exists_cannot_create)
345
346
346
347
sftp_session_struct sftp{};
347
348
MP_EXPECT_THROW_THAT (
348
- MP_SFTPUTILS.get_remote_dir_target (&sftp, source_path, target_path, false ), mp::SFTPError,
349
- mpt::match_what (StrEq (fmt::format (" cannot create remote directory {}: {}" , target_path, err))));
349
+ MP_SFTPUTILS.get_remote_dir_target (&sftp, source_path, target_path, false ),
350
+ mp::SFTPError,
351
+ mpt::match_what (StrEq (fmt::format (" cannot create remote directory \" {}\" : {}" , target_path, err))));
350
352
}
351
353
352
354
TEST_F (SFTPUtils, get_full_remote_dir_target__target_is_dir_child_is_not)
0 commit comments