Bugzilla – Attachment 31227 Details for
Bug 6536
Z3950 Search Enhancements: SRU targets and additional XSLT processing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6536: QA Follow-up for fixing a unit test under Perl 5.18
Bug-6536-QA-Follow-up-for-fixing-a-unit-test-under.patch (text/plain), 1.51 KB, created by
Marcel de Rooy
on 2014-08-28 06:58:47 UTC
(
hide
)
Description:
Bug 6536: QA Follow-up for fixing a unit test under Perl 5.18
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2014-08-28 06:58:47 UTC
Size:
1.51 KB
patch
obsolete
>From 465e625ca6ab942b46dfb0cee05618d89f47aae2 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Wed, 27 Aug 2014 13:24:18 -0300 >Subject: [PATCH] Bug 6536: QA Follow-up for fixing a unit test under Perl > 5.18 >Content-Type: text/plain; charset=utf-8 > >The last test on the first series, fails randomly on Perl 5.18: > not ok 12 - Third query makes no difference > # Failed test 'Third query makes no difference' > # at t/db_dependent/Breeding.t line 104. > # got: '' > # expected: '1' > # Looks like you failed 1 test of 12. >not ok 1 - _build_query > >This change makes tests pass. Please consider if this needs to be fixed >(i.e. sort order matters) or the test needs to be rewritten. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >I agree with adding the sort. (The need for doing this in Perl 5.18 is another >topic.) >--- > C4/Breeding.pm | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > >diff --git a/C4/Breeding.pm b/C4/Breeding.pm >index fa3af82..f9dfdee 100644 >--- a/C4/Breeding.pm >+++ b/C4/Breeding.pm >@@ -249,7 +249,9 @@ sub _build_query { > my $zquery=''; > my $squery=''; > my $nterms=0; >- foreach my $k ( keys %$pars ) { >+ foreach my $k ( sort keys %$pars ) { >+ #note that the sort keys forces an identical result under Perl 5.18 >+ #one of the unit tests is based on that assumption > if( ( my $val=$pars->{$k} ) && $qry_build->{$k} ) { > $qry_build->{$k} =~ s/#term/$val/g; > $zquery .= $qry_build->{$k}; >-- >1.7.7.6
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 6536
:
4540
|
4541
|
4959
|
6901
|
6919
|
6920
|
6924
|
13462
|
26169
|
26170
|
26171
|
26172
|
29754
|
29755
|
29756
|
29779
|
29780
|
29788
|
29790
|
29791
|
29812
|
29813
|
29814
|
29815
|
29816
|
29817
|
29818
|
29819
|
30189
|
30190
|
30191
|
30192
|
30193
|
30194
|
30900
|
30901
|
30902
|
30903
|
30904
|
30905
|
30906
|
30907
|
30929
|
30930
|
30931
|
30932
|
30933
|
30934
|
30935
|
30936
|
31046
|
31048
|
31137
|
31193
|
31194
|
31195
| 31227 |
31247
|
31248
|
37264