diff options
author | Omar Polo <op@omarpolo.com> | 2021-06-15 08:07:44 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-06-15 08:07:44 +0000 |
commit | 89c110fe7befaee2b446873a351e0833c3c884b6 (patch) | |
tree | 02f6295129e6f0632c252642460123e3fe4704a8 /regress/fcgi-test.c | |
parent | e952c5052a0c524eee6d8151b1af96ce2c94ca18 (diff) |
be quieter
nobody really cares if must_read fails, as it normally shouldn't. It
only clutters the regression tests with scary messages that looks like
failure but are, in fact, expected.
Diffstat (limited to 'regress/fcgi-test.c')
-rw-r--r-- | regress/fcgi-test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/regress/fcgi-test.c b/regress/fcgi-test.c index da4bc18..96247a4 100644 --- a/regress/fcgi-test.c +++ b/regress/fcgi-test.c @@ -23,6 +23,7 @@ #include <stdint.h> #include <stdio.h> +#include <stdlib.h> #include <string.h> #include <unistd.h> @@ -114,7 +115,7 @@ static void read_header(struct fcgi_header *hdr) { if (must_read(0, hdr, sizeof(*hdr)) == -1) - errx(1, "must_read failed"); + exit(1); } /* read and consume a record of the given type */ |