This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
tests - remove useless setting in BEGIN
authorNicolas R <atoomic@cpan.org>
Thu, 14 Sep 2017 20:51:42 +0000 (14:51 -0600)
committerJames E Keenan <jkeenan@cpan.org>
Fri, 15 Sep 2017 17:14:44 +0000 (13:14 -0400)
These two tests are not using test.pl
and do not need to load any special file.

No need for fancy setup in BEGIN, all the most
we cannot use the generic set_up_inc helper.

Simply remove the useless BEGIN block.

t/comp/bproto.t
t/opbasic/cmp.t

index 8d11b91..cc91242 100644 (file)
@@ -3,11 +3,7 @@
 # check if builtins behave as prototyped
 #
 
-BEGIN {
-    chdir 't' if -d 't';
-    @INC = '../lib';
-}
-
+# Ideally tests in t/comp wouldn't use require, as require isn't tested yet
 print "1..16\n";
 
 my $i = 1;
index 241eb49..5a88d21 100644 (file)
@@ -1,10 +1,5 @@
 #!./perl
 
-BEGIN {
-       chdir 't' if -d 't';
-       @INC = '../lib';
-}
-
 # This file has been placed in t/opbasic to indicate that it should not use
 # functions imported from t/test.pl or Test::More, as those programs/libraries
 # use operators which are what is being tested in this file.