[timbunce/devel-nytprof] 43e154: Fix test failures on Perl 5.26 w/ PERL_USE_UNSAFE_...

2 views
Skip to first unread message

Tim Bunce

unread,
Dec 31, 2017, 1:27:04 PM12/31/17
to develnyt...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/timbunce/devel-nytprof
Commit: 43e15495ed912ddd47cb69f8e7c84a6063181e20
https://github.com/timbunce/devel-nytprof/commit/43e15495ed912ddd47cb69f8e7c84a6063181e20
Author: Kent Fredric <ken...@gentoo.org>
Date: 2017-10-08 (Sun, 08 Oct 2017)

Changed paths:
M t/lib/NYTProfTest.pm

Log Message:
-----------
Fix test failures on Perl 5.26 w/ PERL_USE_UNSAFE_INC=0

Perl 5.26+ removes '.' from the default @INC, and this breaks the
mechanism internally where @INC-prefixes are stripped from fid_fileinfo
names ( in ::FileInfo.pm ).

This breaks tests due to the sample 'rdt' files expecting single-token
comparators relative to 't/', instead getting a fully qualified path in
the "got" side of the test.

This remedies this by ensuring a fully-qualified path to "t/" is in
@INC for the aforementioned prefix-stripper to pick-up on.

Closes: https://github.com/timbunce/devel-nytprof/issues/108
Bug: https://bugs.gentoo.org/615734


Commit: e4cfcd93fdc6f9e0f16a6eb8ac3bab04afdf280c
https://github.com/timbunce/devel-nytprof/commit/e4cfcd93fdc6f9e0f16a6eb8ac3bab04afdf280c
Author: Tim Bunce <Tim....@pobox.com>
Date: 2017-12-31 (Sun, 31 Dec 2017)

Changed paths:
M t/lib/NYTProfTest.pm

Log Message:
-----------
Merge pull request #112 from kentfredric/perl-526

Fix test failures on Perl 5.26 w/ PERL_USE_UNSAFE_INC=0


Compare: https://github.com/timbunce/devel-nytprof/compare/b2c36783d0d1...e4cfcd93fdc6
Reply all
Reply to author
Forward
0 new messages