From 22f379298c5bfc557699e5387fdccf262b641ccd Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Wed, 9 Dec 2015 19:15:46 +0530 Subject: [PATCH] Disable the RBT benchmark unittest --- lib/dns/tests/rbt_test.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/dns/tests/rbt_test.c b/lib/dns/tests/rbt_test.c index f2e054c746..77640be639 100644 --- a/lib/dns/tests/rbt_test.c +++ b/lib/dns/tests/rbt_test.c @@ -1308,6 +1308,13 @@ ATF_TC_BODY(rbt_insert_and_remove, tc) { dns_test_end(); } +#if 0 + +/* + * XXXMUKS: Don't delete this code. It is useful in benchmarking the + * RBT, but we don't require it as part of the unit test runs. + */ + ATF_TC(benchmark); ATF_TC_HEAD(benchmark, tc) { atf_tc_set_md_var(tc, "descr", "Benchmark RBT implementation"); @@ -1433,6 +1440,8 @@ ATF_TC_BODY(benchmark, tc) { dns_test_end(); } +#endif /* benchmark test */ + /* * Main */ @@ -1446,7 +1455,9 @@ ATF_TP_ADD_TCS(tp) { ATF_TP_ADD_TC(tp, rbt_remove); ATF_TP_ADD_TC(tp, rbt_remove_empty); ATF_TP_ADD_TC(tp, rbt_insert_and_remove); +#if 0 ATF_TP_ADD_TC(tp, benchmark); +#endif return (atf_no_error()); }