From b6911e0db342951fb329ad7308cd437d6b4725c8 Mon Sep 17 00:00:00 2001 From: anton Date: Tue, 5 Oct 2021 05:34:22 +0000 Subject: [PATCH] stop masking test-http.c failures --- regress/usr.sbin/rpki-client/test-http.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/regress/usr.sbin/rpki-client/test-http.c b/regress/usr.sbin/rpki-client/test-http.c index b9cb26bcf59..9f87d9ebe66 100644 --- a/regress/usr.sbin/rpki-client/test-http.c +++ b/regress/usr.sbin/rpki-client/test-http.c @@ -55,7 +55,7 @@ http_result(enum http_result res) } } -static void +static int http_response(int fd) { size_t id; @@ -70,13 +70,14 @@ http_response(int fd) if (lastmod) printf(", last-modified: %s" , lastmod); printf("\n"); + return res == HTTP_FAILED; } int main(int argc, char **argv) { pid_t httppid; - int fd[2], outfd, http; + int error, fd[2], outfd, http; int fl = SOCK_STREAM | SOCK_CLOEXEC; char *uri, *file, *mod; size_t req = 0; @@ -120,7 +121,6 @@ main(int argc, char **argv) case -1: err(1, "write"); } - http_response(http); - - return 0; + error = http_response(http); + return error; } -- 2.20.1