Bugzilla – Attachment 107983 Details for
Bug 26186
Remove "subroutine redefined" warnings from tests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26186: remove 'subroutine redefined' warnings in Auth_with_ldap.t
Bug-26186-remove-subroutine-redefined-warnings-in-.patch (text/plain), 948 bytes, created by
Jonathan Druart
on 2020-08-10 08:33:07 UTC
(
hide
)
Description:
Bug 26186: remove 'subroutine redefined' warnings in Auth_with_ldap.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-08-10 08:33:07 UTC
Size:
948 bytes
patch
obsolete
>From 484d4ee40e9aec2f4f8d1ba57e41598a7ff3d427 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 10 Aug 2020 10:22:56 +0200 >Subject: [PATCH] Bug 26186: remove 'subroutine redefined' warnings in > Auth_with_ldap.t > >--- > t/db_dependent/Auth_with_ldap.t | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/t/db_dependent/Auth_with_ldap.t b/t/db_dependent/Auth_with_ldap.t >index 565ddbdae6..3c26047e1c 100755 >--- a/t/db_dependent/Auth_with_ldap.t >+++ b/t/db_dependent/Auth_with_ldap.t >@@ -502,6 +502,11 @@ sub mock_net_ldap_entry { > # ... Horrible hack > sub reload_ldap_module { > delete $INC{'C4/Auth_with_ldap.pm'}; >+ $SIG{__WARN__} = sub { # Removing "Subroutine * redefined at " warnings >+ >+ my $warning = shift; >+ warn $warning unless $warning =~ /Subroutine .* redefined at/; >+ }; > require C4::Auth_with_ldap; > C4::Auth_with_ldap->import; > return; >-- >2.20.1
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 26186
:
107983