From: Aki Tuomi Date: Wed, 19 Nov 2025 07:59:25 +0000 (+0200) Subject: lib-program-client: test-program-client - Do not require error handling X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7816e429271a3b4f7608bacc9fe840cafb75f605;p=thirdparty%2Fdovecot%2Fcore.git lib-program-client: test-program-client - Do not require error handling It's not important here. --- diff --git a/src/lib-program-client/test-program-client-local.c b/src/lib-program-client/test-program-client-local.c index 5973991a78..b82811c443 100644 --- a/src/lib-program-client/test-program-client-local.c +++ b/src/lib-program-client/test-program-client-local.c @@ -43,6 +43,7 @@ static void test_program_success(void) buffer_t *output = buffer_create_dynamic(default_pool, 16); struct ostream *os = test_ostream_create(output); + o_stream_set_no_error_handling(os, TRUE); program_client_set_output(pc, os); test_assert(program_client_run(pc) == 1); @@ -73,6 +74,7 @@ static void test_program_io_sync(void) buffer_t *output = buffer_create_dynamic(default_pool, 16); struct ostream *os = test_ostream_create(output); + o_stream_set_no_error_handling(os, TRUE); program_client_set_output(pc, os); test_assert(program_client_run(pc) == 1); @@ -116,6 +118,7 @@ static void test_program_io_async(void) buffer_t *output = buffer_create_dynamic(default_pool, 16); struct ostream *os = test_ostream_create(output); + o_stream_set_no_error_handling(os, TRUE); program_client_set_output(pc, os); program_client_run_async(pc, test_program_io_async_callback, &ret); @@ -151,6 +154,7 @@ static void test_program_failure(void) buffer_t *output = buffer_create_dynamic(default_pool, 16); struct ostream *os = test_ostream_create(output); + o_stream_set_no_error_handling(os, TRUE); program_client_set_output(pc, os); test_assert(program_client_run(pc) == 0); @@ -205,6 +209,8 @@ static void test_program_io_big(void) buffer_t *output = buffer_create_dynamic(default_pool, 16); struct ostream *os = test_ostream_create(output); + o_stream_set_no_error_handling(os, TRUE); + program_client_set_output(pc, os); test_assert(program_client_run(pc) == 1); diff --git a/src/lib-program-client/test-program-client-unix.c b/src/lib-program-client/test-program-client-unix.c index 028e29de67..7cc81769cb 100644 --- a/src/lib-program-client/test-program-client-unix.c +++ b/src/lib-program-client/test-program-client-unix.c @@ -295,6 +295,7 @@ static void test_program_success(void) buffer_t *output = buffer_create_dynamic(default_pool, 16); struct ostream *os = test_ostream_create(output); + o_stream_set_no_error_handling(os, TRUE); program_client_set_output(pc, os); program_client_run_async(pc, test_program_async_callback, &ret); @@ -378,6 +379,7 @@ static void test_program_failure(void) buffer_t *output = buffer_create_dynamic(default_pool, 16); struct ostream *os = test_ostream_create(output); + o_stream_set_no_error_handling(os, TRUE); program_client_set_output(pc, os); program_client_run_async(pc, test_program_async_callback, &ret);