From 7e59ef65e66ae92e83a1ff2830a874e2e25d49ae Mon Sep 17 00:00:00 2001 From: Ralph Dolmans Date: Fri, 7 Apr 2017 08:57:05 +0000 Subject: [PATCH] Unlock view in respip unit test git-svn-id: file:///svn/unbound/trunk@4098 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 3 +++ testcode/unitmain.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index 2cd7b92d2..5e6a8fb73 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +7 april 2017: Ralph + - Unlock view in respip unit test + 6 April 2017: Ralph - Generalise inplace callback (de)registration - (de)register inplace callbacks for module id diff --git a/testcode/unitmain.c b/testcode/unitmain.c index de9c19719..fd56e64d3 100644 --- a/testcode/unitmain.c +++ b/testcode/unitmain.c @@ -685,9 +685,11 @@ respip_view_conf_actions_test(void) v = views_find_view(views, "view1", 0); unit_assert(v); verify_respip_set_actions(v->respip_set, config_response_ip_view1, clen1); + lock_rw_unlock(&v->lock); v = views_find_view(views, "view2", 0); unit_assert(v); verify_respip_set_actions(v->respip_set, config_response_ip_view2, clen2); + lock_rw_unlock(&v->lock); } typedef struct addr_data {char* ip; char* data;} addr_data_t;