under -Dusedl there are no warnings about the other dl_ functions
authorTony Cook <tony@develop-help.com>
Fri, 16 Nov 2012 11:14:16 +0000 (22:14 +1100)
committerTony Cook <tony@develop-help.com>
Fri, 16 Nov 2012 11:14:16 +0000 (22:14 +1100)
commitb5ab070a78402b548489ee0ef968c6d177550dfb
tree231076e7f0e6d07931903e3c829746b0125152b3
parentac1f638faac4ae88b03e6ce7c029be3362118669
under -Dusedl there are no warnings about the other dl_ functions

without usedl, the warnings are like:

Subroutine DynaLoader::dl_error redefined at (eval 1) line 2
... warnings about every other DynaLoader function
Subroutine DynaLoader::dl_error redefined at (eval 2) line 2

with usedl, only dl_error is defined, so the other warnings disappear,
since the regexp expected two new-lines between the dl_error warnings
the test failed.

The change makes one of the newlines optional.
t/lib/warnings/op