From ffb3966ec2a9975a103d78b0d30a318737b1e22a Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Thu, 27 Nov 2008 19:34:07 +0000 Subject: [PATCH] minor compilation and regresson fixes; from Frank Denis svn:r952 --- test/Makefile.am | 1 + test/regress_http.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/test/Makefile.am b/test/Makefile.am index ffa291d7..7b24502f 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -28,6 +28,7 @@ endif regress_LDADD = ../libevent.la $(PTHREAD_LIBS) $(ZLIB_LIBS) regress_CFLAGS = -I$(top_srcdir) -I$(top_srcdir)/compat \ -I$(top_srcdir)/include $(PTHREAD_CFLAGS) $(ZLIB_CFLAGS) +regress_LDFLAGS = $(PTHREAD_CFLAGS) bench_SOURCES = bench.c bench_LDADD = ../libevent.la bench_cascade_SOURCES = bench_cascade.c diff --git a/test/regress_http.c b/test/regress_http.c index 630cf762..afb0e1d9 100644 --- a/test/regress_http.c +++ b/test/regress_http.c @@ -2014,6 +2014,11 @@ http_stream_in_cancel_test(void) static void http_connection_retry_done(struct evhttp_request *req, void *arg) { + if (req == NULL) { + fprintf(stderr, "FAILED (connection aborted)\n"); + exit(1); + } + if (req->response_code == HTTP_OK) { fprintf(stderr, "FAILED\n"); exit(1);