This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use set_up_inc for several unit tests
authorNicolas R <atoomic@cpan.org>
Thu, 18 Aug 2016 01:14:51 +0000 (11:14 +1000)
committerTony Cook <tony@develop-help.com>
Thu, 18 Aug 2016 01:14:57 +0000 (11:14 +1000)
commit624c42e21a507311daed2012be92ca7adec9b65f
tree16f913214f5c84b2c73ab909d7275ed9088fde6e
parentfb9b5c74fb7605d3882509c33d3d353e88a7c253
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.
240 files changed:
t/io/argv.t
t/io/binmode.t
t/io/bom.t
t/io/closepid.t
t/io/crlf.t
t/io/data.t
t/io/defout.t
t/io/dup.t
t/io/eintr.t
t/io/eintr_print.t
t/io/errnosig.t
t/io/fflush.t
t/io/fs.t
t/io/iofile.t
t/io/layers.t
t/io/nargv.t
t/io/open.t
t/io/openpid.t
t/io/perlio.t
t/io/perlio_fail.t
t/io/perlio_leaks.t
t/io/perlio_open.t
t/io/pipe.t
t/io/print.t
t/io/pvbm.t
t/io/read.t
t/io/say.t
t/io/sem.t
t/io/shm.t
t/io/socket.t
t/io/tell.t
t/io/through.t
t/io/utf8.t
t/mro/basic.t
t/mro/inconsistent_c3.t
t/mro/inconsistent_c3_utf8.t
t/mro/isa_aliases.t
t/mro/isa_aliases_utf8.t
t/mro/isa_c3.t
t/mro/isa_c3_utf8.t
t/mro/isa_dfs.t
t/mro/isa_dfs_utf8.t
t/mro/isarev.t
t/mro/isarev_utf8.t
t/mro/method_caching.t
t/mro/method_caching_utf8.t
t/mro/next_edgecases.t
t/mro/next_edgecases_utf8.t
t/mro/overload_c3.t
t/mro/overload_c3_utf8.t
t/mro/overload_dfs.t
t/mro/package_aliases.t
t/mro/package_aliases_utf8.t
t/mro/recursion_c3.t
t/mro/recursion_c3_utf8.t
t/mro/recursion_dfs.t
t/mro/recursion_dfs_utf8.t
t/op/64bitint.t
t/op/aassign.t
t/op/alarm.t
t/op/anonconst.t
t/op/anonsub.t
t/op/append.t
t/op/args.t
t/op/array.t
t/op/assignwarn.t
t/op/attrhand.t
t/op/attrproto.t
t/op/attrs.t
t/op/auto.t
t/op/bless.t
t/op/bop.t
t/op/caller.t
t/op/chars.t
t/op/chdir.t
t/op/chop.t
t/op/chr.t
t/op/concat2.t
t/op/cond.t
t/op/const-optree.t
t/op/context.t
t/op/coreamp.t
t/op/coresubs.t
t/op/cproto.t
t/op/crypt.t
t/op/current_sub.t
t/op/dbm.t
t/op/defins.t
t/op/delete.t
t/op/die.t
t/op/die_exit.t
t/op/die_keeperr.t
t/op/do.t
t/op/dor.t
t/op/dump.t
t/op/each.t
t/op/each_array.t
t/op/evalbytes.t
t/op/exec.t
t/op/exists_sub.t
t/op/exp.t
t/op/fh.t
t/op/filehandle.t
t/op/filetest_stack_ok.t
t/op/filetest_t.t
t/op/fork.t
t/op/fresh_perl_utf8.t
t/op/getpid.t
t/op/getppid.t
t/op/glob.t
t/op/gmagic.t
t/op/goto.t
t/op/goto_xs.t
t/op/grent.t
t/op/grep.t
t/op/groups.t
t/op/hash-rt85026.t
t/op/hashassign.t
t/op/hashwarn.t
t/op/heredoc.t
t/op/hexfp.t
t/op/inc.t
t/op/inccode.t
t/op/incfilter.t
t/op/infnan.t
t/op/int.t
t/op/join.t
t/op/kill0.t
t/op/leaky-magic.t
t/op/lex_assign.t
t/op/lfs.t
t/op/list.t
t/op/local.t
t/op/lock.t
t/op/loopctl.t
t/op/lop.t
t/op/magic-27839.t
t/op/magic.t
t/op/method.t
t/op/mkdir.t
t/op/my.t
t/op/mydef.t
t/op/negate.t
t/op/not.t
t/op/numconvert.t
t/op/or.t
t/op/ord.t
t/op/packagev.t
t/op/pos.t
t/op/postfixderef.t
t/op/pow.t
t/op/protowarn.t
t/op/pwent.t
t/op/quotemeta.t
t/op/rand.t
t/op/range.t
t/op/read.t
t/op/readdir.t
t/op/recurse.t
t/op/ref.t
t/op/repeat.t
t/op/require_37033.t
t/op/require_errors.t
t/op/reset.t
t/op/runlevel.t
t/op/setpgrpstack.t
t/op/sleep.t
t/op/splice.t
t/op/split_unicode.t
t/op/sprintf.t
t/op/sprintf2.t
t/op/srand.t
t/op/sselect.t
t/op/stash.t
t/op/stat.t
t/op/state.t
t/op/study.t
t/op/studytied.t
t/op/sub_lval.t
t/op/switch.t
t/op/symbolcache.t
t/op/sysio.t
t/op/threads-dirh.t
t/op/threads.t
t/op/tie.t
t/op/tie_fetch_count.t
t/op/tiearray.t
t/op/time.t
t/op/undef.t
t/op/unlink.t
t/op/upgrade.t
t/op/utf8cache.t
t/op/utf8decode.t
t/op/utf8magic.t
t/op/utfhash.t
t/op/ver.t
t/op/waitpid.t
t/op/wantarray.t
t/op/while.t
t/op/yadayada.t
t/opbasic/arith.t
t/re/charset.t
t/re/fold_grind.t
t/re/no_utf8_pm.t
t/re/overload.t
t/re/pat.t
t/re/pat_advanced.t
t/re/pat_psycho.t
t/re/pat_rt_report.t
t/re/pat_special_cc.t
t/re/pos.t
t/re/qr-72922.t
t/re/qr.t
t/re/qr_gc.t
t/re/qrstack.t
t/re/recompile.t
t/re/reg_60508.t
t/re/reg_email.t
t/re/reg_fold.t
t/re/reg_mesg.t
t/re/reg_nc_tie.t
t/re/reg_nocapture.t
t/re/reg_pmod.t
t/re/reg_posixcc.t
t/re/regex_sets.t
t/re/rt122747.t
t/re/speed.t
t/re/subst_amp.t
t/uni/attrs.t
t/uni/bless.t
t/uni/caller.t
t/uni/case.pl
t/uni/heavy.t
t/uni/lex_utf8.t
t/uni/method.t
t/uni/opcroak.t
t/uni/overload.t
t/uni/select.t
t/uni/sprintf.t
t/uni/universal.t