summaryrefslogtreecommitdiff
path: root/t/op/lfs.t
diff options
context:
space:
mode:
authorNicolas R <atoomic@cpan.org>2016-08-18 11:14:51 +1000
committerTony Cook <tony@develop-help.com>2016-08-18 11:14:57 +1000
commit624c42e21a507311daed2012be92ca7adec9b65f (patch)
tree16f913214f5c84b2c73ab909d7275ed9088fde6e /t/op/lfs.t
parentfb9b5c74fb7605d3882509c33d3d353e88a7c253 (diff)
downloadperl-624c42e21a507311daed2012be92ca7adec9b65f.tar.gz
Use set_up_inc for several unit tests
Use set_up_inc when require.pl is loaded move plan outside of BEGIN block when no tests are run at BEGIN time. Using set_up_inc allow to run these tests under minitest but also compile them using B::C. This also has the advantage to use a single control point for @INC setup. Note: some tests cannot use 'require test.pl', unshfit is then used for them.
Diffstat (limited to 't/op/lfs.t')
-rw-r--r--t/op/lfs.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/op/lfs.t b/t/op/lfs.t
index acf9fe801f..1ddfd13ccd 100644
--- a/t/op/lfs.t
+++ b/t/op/lfs.t
@@ -4,9 +4,9 @@
BEGIN {
chdir 't' if -d 't';
- @INC = '../lib';
require './test.pl';
- require Config;
+ set_up_inc('../lib');
+ require Config;
# Don't bother if there are no quad offsets.
skip_all('no 64-bit file offsets')
if $Config::Config{lseeksize} < 8;