Bug 14158: www search tests - Cleanup at the end
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 30 Mar 2016 09:55:02 +0000 (10:55 +0100)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Wed, 30 Mar 2016 13:42:41 +0000 (13:42 +0000)
commit8255a18edc9c2eee52b01bfa20114b088b9bf555
tree714d5d8f772b378ff38f105e7045d0163c492fa0
parent6325277c64ce119ac2854389678694f4815de8be
 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!

Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
t/db_dependent/www/search_utf8.t