From: Eric Pouech <epouech(a)codeweavers.com> Spotted by Chromium test suite. Signed-off-by: Eric Pouech <epouech(a)codeweavers.com> --- programs/findstr/main.c | 6 +++++- programs/findstr/tests/findstr.c | 5 ----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/programs/findstr/main.c b/programs/findstr/main.c index c0fc9114be5..7e8a3299e89 100644 --- a/programs/findstr/main.c +++ b/programs/findstr/main.c @@ -185,7 +185,7 @@ int __cdecl wmain(int argc, WCHAR *argv[]) struct findstr_file *file_head = NULL, *current_file, *next_file; char line[MAXSTRING]; WCHAR *string, *ptr, *buffer; - BOOL has_string = FALSE, has_file = FALSE, case_sensitive = TRUE, regular_expression = FALSE; + BOOL has_string = FALSE, has_file = FALSE, case_sensitive = TRUE, regular_expression = TRUE; int ret = 1, i, j; for (i = 0; i < argc; i++) @@ -238,6 +238,10 @@ int __cdecl wmain(int argc, WCHAR *argv[]) case 'i': case_sensitive = FALSE; break; + case 'L': + case 'l': + regular_expression = FALSE; + break; case 'R': case 'r': regular_expression = TRUE; diff --git a/programs/findstr/tests/findstr.c b/programs/findstr/tests/findstr.c index 947d8243b67..71f663626d4 100644 --- a/programs/findstr/tests/findstr.c +++ b/programs/findstr/tests/findstr.c @@ -321,20 +321,15 @@ static void test_basic(void) ret = strcmp(stdout_buffer, "a"); ok(!ret, "Got the wrong result. '%s'\n", stdout_buffer); - todo_wine run_find_file(".", "a", 0); - todo_wine ok(stdout_size > 0, "Unexpected stdout buffer size %ld.\n", stdout_size); ok(stderr_size == 0, "Unexpected stderr buffer size %ld.\n", stderr_size); ret = strcmp(stdout_buffer, "a"); - todo_wine ok(!ret, "Got the wrong result. '%s'\n", stdout_buffer); run_find_file("/L .", "a", 1); ok(stdout_size == 0, "Unexpected stdout buffer size %ld.\n", stdout_size); - todo_wine ok(stderr_size == 0, "Unexpected stderr buffer size %ld.\n", stderr_size); - todo_wine ok(!ret, "Got the wrong result. '%s'\n", stdout_buffer); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7415