From 5c104cef5198473441d40e760fb4ea6fea989231 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 23 Apr 2009 00:33:37 +0000 Subject: [PATCH] Add a randomized test for heap correctness. svn:r1229 --- test/Makefile.am | 2 +- test/regress.h | 1 + test/regress_main.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/Makefile.am b/test/Makefile.am index 1e1e0423..13222af8 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -21,7 +21,7 @@ test_time_LDADD = ../libevent_core.la regress_SOURCES = regress.c regress_buffer.c regress_http.c regress_dns.c \ regress_rpc.c regress.gen.c regress.gen.h regress_et.c \ regress_bufferevent.c \ - regress_util.c tinytest.c regress_main.c \ + regress_util.c tinytest.c regress_main.c regress_minheap.c \ $(regress_pthread_SOURCES) $(regress_zlib_SOURCES) if PTHREADS regress_pthread_SOURCES = regress_pthread.c diff --git a/test/regress.h b/test/regress.h index fa1f2660..bdea95f6 100644 --- a/test/regress.h +++ b/test/regress.h @@ -43,6 +43,7 @@ extern struct testcase_t http_testcases[]; extern struct testcase_t dns_testcases[]; extern struct testcase_t rpc_testcases[]; extern struct testcase_t edgetriggered_testcases[]; +extern struct testcase_t minheap_testcases[]; void regress_threads(void *); void test_bufferevent_zlib(void *); diff --git a/test/regress_main.c b/test/regress_main.c index 624ef71b..7bcda356 100644 --- a/test/regress_main.c +++ b/test/regress_main.c @@ -258,6 +258,7 @@ struct testcase_t thread_testcases[] = { struct testgroup_t testgroups[] = { { "main/", main_testcases }, + { "heap/", minheap_testcases }, { "et/", edgetriggered_testcases }, { "evbuffer/", evbuffer_testcases }, { "signal/", signal_testcases }, -- 2.40.0