]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Unlock view in respip unit test
authorRalph Dolmans <ralph@nlnetlabs.nl>
Fri, 7 Apr 2017 08:57:05 +0000 (08:57 +0000)
committerRalph Dolmans <ralph@nlnetlabs.nl>
Fri, 7 Apr 2017 08:57:05 +0000 (08:57 +0000)
git-svn-id: file:///svn/unbound/trunk@4098 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
testcode/unitmain.c

index 2cd7b92d2a809b7d87eec704ae8367dba7da70ad..5e6a8fb73f7f12241383e744ce60026058b72196 100644 (file)
@@ -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
index de9c1971964411c43aa2d6142b5dfb77556a8687..fd56e64d3f5d8a9770b910cca34b7c1868757c2c 100644 (file)
@@ -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;