Signed-off-by: Florian Eder <others.meder(a)gmail.com> --- programs/robocopy/tests/robocopy.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/programs/robocopy/tests/robocopy.c b/programs/robocopy/tests/robocopy.c index f699a9dc57b..48366ed8e7a 100644 --- a/programs/robocopy/tests/robocopy.c +++ b/programs/robocopy/tests/robocopy.c @@ -1559,6 +1559,26 @@ gggggggggggggggggggggggggggggggggggggggg\\robocopy_destination /r:1 /w:0", 1); check_long_filename_test(); winetest_pop_context(); + winetest_push_context("LOG test 1"); + create_test_source_folder(); + swprintf(temp_command_line, ARRAY_SIZE(temp_command_line), + L"robocopy.exe %s\\robocopy_source %s\\robocopy_destination /log:%s\\log.txt /r:1 /w:0", + temp_path, temp_path, temp_path); + execute_robocopy(temp_command_line, 1); + check_file_and_delete(L"log.txt", TRUE); + check_basic_copy_test(); + winetest_pop_context(); + + winetest_push_context("LOG test 2"); + create_test_source_folder(); + swprintf(temp_command_line, ARRAY_SIZE(temp_command_line), + L"robocopy.exe %s\\robocopy_source %s\\robocopy_destination /log+:%s\\log.txt /r:1 /w:0", + temp_path, temp_path, temp_path); + execute_robocopy(temp_command_line, 1); + check_file_and_delete(L"log.txt", TRUE); + check_basic_copy_test(); + winetest_pop_context(); + /* Reset CWD to previous folder */ ok(SetCurrentDirectoryW(previous_cwd_path), "couldn't set CWD to previous CWD folder \"%S\"", previous_cwd_path); } \ No newline at end of file -- 2.32.0