]> granicus.if.org Git - libevent/commitdiff
minor compilation and regresson fixes; from Frank Denis
authorNiels Provos <provos@gmail.com>
Thu, 27 Nov 2008 19:34:07 +0000 (19:34 +0000)
committerNiels Provos <provos@gmail.com>
Thu, 27 Nov 2008 19:34:07 +0000 (19:34 +0000)
svn:r952

test/Makefile.am
test/regress_http.c

index ffa291d7415728160edb1aa236dbbfc408a3862f..7b24502f9cf7ace73a68e60d7156523e117550ac 100644 (file)
@@ -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
index 630cf762025d0f959c115aab291eae84af076f68..afb0e1d94bcb4a8fda8fe2dfd0e8148888c774a1 100644 (file)
@@ -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);