summaryrefslogtreecommitdiff
path: root/lib/FileCache/t/04twoarg.t
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-07-27 16:03:21 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-07-27 16:03:21 +0200
commit304efdcbf5a203c3e0f6c6f0db51fdcdf250aca1 (patch)
treefef1bc6cdc7213d0f78bab08962e2a0175d642e3 /lib/FileCache/t/04twoarg.t
parent8e2e2108bd3e781e0030bedb33fdf9102a8de1c7 (diff)
downloadperl-304efdcbf5a203c3e0f6c6f0db51fdcdf250aca1.tar.gz
Add core test boilerplates
(this is not a dual-life module)
Diffstat (limited to 'lib/FileCache/t/04twoarg.t')
-rw-r--r--lib/FileCache/t/04twoarg.t14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/FileCache/t/04twoarg.t b/lib/FileCache/t/04twoarg.t
index 66da9719a2..40bae6dcbf 100644
--- a/lib/FileCache/t/04twoarg.t
+++ b/lib/FileCache/t/04twoarg.t
@@ -1,12 +1,14 @@
#!./perl
-BEGIN {
- use FileCache;
- chdir 't' if -d 't';
- #For tests within the perl distribution
- @INC = '../lib' if -d '../lib';
- END;
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't' if -d 't';
+ @INC = qw(../lib);
+ }
}
+
+use FileCache;
+
END{
unlink('foo');
}