From: Eric Pouech epouech@codeweavers.com
Signed-off-by: Eric Pouech epouech@codeweavers.com --- programs/findstr/tests/findstr.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
diff --git a/programs/findstr/tests/findstr.c b/programs/findstr/tests/findstr.c index f72d9220cf6..947d8243b67 100644 --- a/programs/findstr/tests/findstr.c +++ b/programs/findstr/tests/findstr.c @@ -314,6 +314,28 @@ static void test_basic(void) ok(stderr_size == 0, "Unexpected stderr buffer size %ld.\n", stderr_size); ret = strcmp(stdout_buffer, "ab$c"); ok(!ret, "Got the wrong result. '%s'\n", stdout_buffer); + + run_find_file("/R .", "a", 0); + 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"); + 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); }
START_TEST(findstr)