minor compilation and regresson fixes; from Frank Denis

svn:r952
This commit is contained in:
Niels Provos 2008-11-27 19:34:07 +00:00
parent 4fe25cefb5
commit ffb3966ec2
2 changed files with 6 additions and 0 deletions

View 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

View 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);