-#!/usr/local/bin/perl -w
+#!/usr/bin/perl -w
# Test for mktemp family of commands in File::Temp
# Use STANDARD safe level for these tests
+BEGIN {
+ chdir 't' if -d 't';
+ unshift @INC, '../lib';
+ require Test; import Test;
+ plan(tests => 9);
+}
+
use strict;
-use Test;
-BEGIN { plan tests => 9 }
use File::Spec;
use File::Path;
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl -w
# Test for File::Temp - POSIX functions
+BEGIN {
+ chdir 't' if -d 't';
+ unshift @INC, '../lib';
+ require Test; import Test;
+ plan(tests => 7);
+}
+
use strict;
-use Test;
-BEGIN { plan tests => 7}
use File::Temp qw/ :POSIX unlink0 /;
ok(1);
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl -w
# Test for File::Temp - Security levels
# Some of the security checking will not work on all platforms
# Test a simple open in the cwd and tmpdir foreach of the
# security levels
-use strict;
-use Test;
-BEGIN { plan tests => 13}
+BEGIN {
+ chdir 't' if -d 't';
+ unshift @INC, '../lib';
+ require Test; import Test;
+ plan(tests => 13);
+}
+use strict;
use File::Spec;
# Set up END block - this needs to happen before we load
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl -w
# Test for File::Temp - tempfile function
+BEGIN {
+ chdir 't' if -d 't';
+ unshift @INC, '../lib';
+ require Test; import Test;
+ plan(tests => 11);
+}
+
use strict;
-use Test;
-BEGIN { plan tests => 11}
use File::Spec;
# Will need to check that all files were unlinked correctly