projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2bb714
)
diag.t: Load test.pl in BEGIN
author
Father Chrysostomos
<sprout@cpan.org>
Wed, 27 Jun 2012 07:41:49 +0000
(
00:41
-0700)
committer
Father Chrysostomos
<sprout@cpan.org>
Wed, 27 Jun 2012 07:52:54 +0000
(
00:52
-0700)
so that parentheses can be omitted in tests to be added.
t/porting/diag.t
patch
|
blob
|
history
diff --git
a/t/porting/diag.t
b/t/porting/diag.t
index
4325fdc
..
4eef1df
100644
(file)
--- a/
t/porting/diag.t
+++ b/
t/porting/diag.t
@@
-2,8
+2,10
@@
use warnings;
use strict;
-chdir 't';
-require './test.pl';
+BEGIN {
+ chdir 't';
+ require './test.pl';
+}
plan('no_plan');