From: Stephan Bosch Date: Tue, 7 Apr 2020 21:48:44 +0000 (+0200) Subject: lib-smtp: test-smtp-payload - Adjust log prefix code to match other similar unit... X-Git-Tag: 2.3.13~643 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f02f6ea98ba19d8bae35272ac80d1cff1eb6324;p=thirdparty%2Fdovecot%2Fcore.git lib-smtp: test-smtp-payload - Adjust log prefix code to match other similar unit tests. --- diff --git a/src/lib-smtp/test-smtp-payload.c b/src/lib-smtp/test-smtp-payload.c index 2a8bb3d19a..d3b0d70dae 100644 --- a/src/lib-smtp/test-smtp-payload.c +++ b/src/lib-smtp/test-smtp-payload.c @@ -888,10 +888,10 @@ test_run_client_server( if (server_pid == 0) { server_pid = (pid_t)-1; hostpid_init(); - if (debug) - i_debug("server: PID=%s", my_pid); - i_set_failure_prefix("SERVER: "); /* child: server */ + i_set_failure_prefix("SERVER: "); + if (debug) + i_debug("PID=%s", my_pid); ioloop = io_loop_create(); test_server_init(server_set); io_loop_run(ioloop); @@ -908,10 +908,10 @@ test_run_client_server( lib_signals_ioloop_attach(); - if (debug) - i_debug("client: PID=%s", my_pid); - i_set_failure_prefix("CLIENT: "); /* parent: client */ + i_set_failure_prefix("CLIENT: "); + if (debug) + i_debug("PID=%s", my_pid); ioloop = io_loop_create(); test_client_init(); client_init(protocol, client_set); @@ -919,8 +919,9 @@ test_run_client_server( test_client_deinit(); io_loop_destroy(&ioloop); bind_port = 0; - test_server_kill_forced(); + i_unset_failure_prefix(); + test_server_kill_forced(); test_files_deinit(); }