[Koha-bugs] [Bug 16868] Silence error t/db_dependent/Linker_FirstMatch.t

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jul 7 03:56:08 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16868

--- Comment #2 from M. Tompsett <mtompset at hotmail.com> ---
Created attachment 53155
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=53155&action=edit
Bug 16868: Silence error t/db_dependent/Linker_FirstMatch.t

When the auth_header table has records which exclude 1xx and
2xx tags, the $bibfield doesn't match anything. This in turn
sets it to undef, which triggers an error on the next line
killing the test.

LIMIT was removed as it is not necessary and is a
MySQL-ism. Though this may slow down testing with huge
auth_header files, it should not be significant.

TEST PLAN
---------
1) back up DB
2) Make sure to add in some authority records.
3) DELETE FROM auth_header WHERE marcxml LIKE '%datafield tag="1%';
   DELETE FROM auth_header WHERE marcxml LIKE '%datafield tag="2%';
   -- Now the test should blow up nicely.
   -- If you find you have no records, add more such that you
      repeat steps 2 and 3 and still have records in auth_header.
      Sorry, getting the trigger data is the hard part.
4) prove t/db_dependent/Linker_FirstMatch.t
   -- should barf before running all the tests
5) apply patch
6) prove t/db_dependent/Linker_FirstMatch.t
   -- should have pretty skip message(s)
7) run koha qa test tools
8) restore your backup

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list