summaryrefslogtreecommitdiff
path: root/t/opbasic
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2021-02-03 14:41:32 +1100
committerJames E Keenan <jkeenan@cpan.org>2021-02-09 09:56:10 -0500
commit71b07aa842287fc28b95c3f8aebb0912fad16ea4 (patch)
treeedbc39da4c94869b02655d4820edfa3e67d6848f /t/opbasic
parentd4c0efc5ecf8e55dc836384c26ca7ba29689caf4 (diff)
downloadperl-71b07aa842287fc28b95c3f8aebb0912fad16ea4.tar.gz
files in t/opbasic shouldn't load test.pl
since they're the most basic of tests, it should avoid loading any modules. It currently loads Config (conditionally), but there's no way to avoid that at this point.
Diffstat (limited to 't/opbasic')
-rw-r--r--t/opbasic/arith.t8
1 files changed, 6 insertions, 2 deletions
diff --git a/t/opbasic/arith.t b/t/opbasic/arith.t
index 69ea784a02..0be9c93097 100644
--- a/t/opbasic/arith.t
+++ b/t/opbasic/arith.t
@@ -2,8 +2,12 @@
BEGIN {
chdir 't' if -d 't';
- require './test.pl';
- set_up_inc('../lib');
+ # we can't use test.pl here (see the comment below)
+ #require './test.pl';
+ #set_up_inc('../lib');
+ # so inline set_up_inc() and its call to is_miniperl
+ @INC = () if defined &DynaLoader::boot_DynaLoader;
+ unshift @INC, "../lib";
}
# This file has been placed in t/opbasic to indicate that it should not use