From 07be4d8da4e2e8bbd1f1e2ca47505d9bab58432e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 30 Mar 2016 10:55:02 +0100 Subject: [PATCH] Bug 14158: www search tests - Cleanup at the end When something wrong happen, the parent process is waiting for the children to finish, but they have been zombified and the test hangs. To fix that, we should ensure that the cleanup is correctly done and that the processes are correctly killed. Test plan: export KOHA_USER=koha export KOHA_PASS=koha export KOHA_INTRANET_URL=http://do_not_exist_but_its_expected export KOHA_OPAC_URL=http://another_url prove t/db_dependent/www/search_utf8.t Without this patch, the tests will hang With the patch applied, they won't! --- t/db_dependent/www/search_utf8.t | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t/db_dependent/www/search_utf8.t b/t/db_dependent/www/search_utf8.t index 5ac31d6..851850c 100644 --- a/t/db_dependent/www/search_utf8.t +++ b/t/db_dependent/www/search_utf8.t @@ -339,4 +339,9 @@ sub GetBiblionumberFromImport{ return $biblionumber; } + +END { + cleanup(); +}; + 1; -- 2.7.0