Run Travis tests with PERL_USE_UNSAFE_INC=0 This makes sure that Test::Harness doesn't set PERL_USE_UNSAFE_INC to 1 and that the tests are actually run without . in @INC.
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/480527e6 Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/480527e6 Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/480527e6 Branch: refs/heads/0.6 Commit: 480527e604dd6a9fc4dbb32aebf1620cbcaacda1 Parents: 47c750f Author: Nick Wellnhofer <wellnho...@aevum.de> Authored: Thu Feb 8 13:34:41 2018 +0100 Committer: Nick Wellnhofer <wellnho...@aevum.de> Committed: Thu Feb 8 16:13:52 2018 +0100 ---------------------------------------------------------------------- devel/bin/travis-test.sh | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/480527e6/devel/bin/travis-test.sh ---------------------------------------------------------------------- diff --git a/devel/bin/travis-test.sh b/devel/bin/travis-test.sh index 080a1bf..b60f993 100755 --- a/devel/bin/travis-test.sh +++ b/devel/bin/travis-test.sh @@ -43,6 +43,9 @@ test_c() { } test_perl() { + # Test::Harness defaults to PERL_USE_UNSAFE_INC=1 + export PERL_USE_UNSAFE_INC=0 + source ~/perl5/perlbrew/etc/bashrc perlbrew switch $PERL_VERSION perlbrew list