Bugzilla – Attachment 11929 Details for
Bug 8649
C4::Search needs a unit test
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] bug 8649: make sure we can exit if a test fails
bug-8649-make-sure-we-can-exit-if-a-test-fails.patch (text/plain), 1.48 KB, created by
Kyle M Hall (khall)
on 2012-08-31 18:21:19 UTC
(
hide
)
Description:
[SIGNED-OFF] bug 8649: make sure we can exit if a test fails
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2012-08-31 18:21:19 UTC
Size:
1.48 KB
patch
obsolete
>From 2f4bef5b2500006ac3632ffd971d285dc69da0b6 Mon Sep 17 00:00:00 2001 >From: Galen Charlton <gmc@esilibrary.com> >Date: Thu, 16 Aug 2012 13:23:49 -0400 >Subject: [PATCH] bug 8649: make sure we can exit if a test fails >Content-Type: text/plain; charset="utf-8" > >Signed-off-by: Galen Charlton <gmc@esilibrary.com> >Signed-off-by: wajasu <matted-34813@mypacks.net> >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > t/db_dependent/Search.t | 14 +++++++++----- > 1 files changed, 9 insertions(+), 5 deletions(-) > >diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t >index 242f259..e949050 100644 >--- a/t/db_dependent/Search.t >+++ b/t/db_dependent/Search.t >@@ -502,12 +502,16 @@ warning_like {( undef, $results_hashref, $facets_loop ) = > $results_hashref->{'biblioserver'}->{"RECORDS"}); > is($newresults[0]->{'alternateholdings_count'}, 1, 'Alternate holdings filled in correctly'); > >-kill 9, $child; >+END { >+ if ($child) { >+ kill 9, $child; > >-# Clean up the Zebra files since the child process was just shot >+ # Clean up the Zebra files since the child process was just shot > >-find(sub { unlink($_) if ( -f $_ && m/\.(mf|pid|LCK)$/ ); }, "$datadir"); >-unlink("$datadir/var/run/zebradb/authoritysocket"); >-unlink("$datadir/var/run/zebradb/bibliosocket"); >+ find(sub { unlink($_) if ( -f $_ && m/\.(mf|pid|LCK)$/ ); }, "$datadir"); >+ unlink("$datadir/var/run/zebradb/authoritysocket"); >+ unlink("$datadir/var/run/zebradb/bibliosocket"); >+ } >+} > > 1; >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8649
:
11642
|
11648
|
11649
|
11650
|
11651
|
11652
|
11925
|
11926
|
11927
|
11928
|
11929
|
11930
|
11931
|
11932