From 6678a497928ce105c4bce21c4d2eba4b3ecd4259 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Wed, 15 Nov 2017 19:06:00 +0000 Subject: [PATCH] Testsuite: better debug output from "server" script-runner --- test/scripts/2100-OpenSSL/2102 | 2 +- test/src/server.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/scripts/2100-OpenSSL/2102 b/test/scripts/2100-OpenSSL/2102 index 374f3a27f..3904c5098 100644 --- a/test/scripts/2100-OpenSSL/2102 +++ b/test/scripts/2100-OpenSSL/2102 @@ -5,7 +5,7 @@ # As a result the expansion done and logged is misleading. # # Make RSA authentication the only acceptable -exim -d-all+tls -DSERVER=server -DORDER=RSA -bd -oX PORT_D +exim -DSERVER=server -DORDER=RSA -bd -oX PORT_D **** client-ssl 127.0.0.1 PORT_D ??? 220 diff --git a/test/src/server.c b/test/src/server.c index 5af86d96f..d433ebe0e 100644 --- a/test/src/server.c +++ b/test/src/server.c @@ -401,7 +401,7 @@ else sin6.sin6_addr = anyaddr6; if (bind(listen_socket[i], (struct sockaddr *)&sin6, sizeof(sin6)) < 0) { - printf("IPv6 socket bind() failed: %s\n", strerror(errno)); + printf("IPv6 socket bind(port %d) failed: %s\n", port, strerror(errno)); exit(1); } } @@ -420,7 +420,7 @@ else if (bind(listen_socket[i], (struct sockaddr *)&sin4, sizeof(sin4)) < 0) if (listen_socket[v6n] < 0 || errno != EADDRINUSE) { - printf("IPv4 socket bind() failed: %s\n", strerror(errno)); + printf("IPv4 socket bind(port %d) failed: %s\n", port, strerror(errno)); exit(1); } else -- 2.25.1