]> iEval git - apache2-authen-passphrase.git/blobdiff - t/Apache2-Authen-Passphrase.t
Add the aap-passwd utility and the AAP_ROOTDIR environment variable
[apache2-authen-passphrase.git] / t / Apache2-Authen-Passphrase.t
index b27498b1921ca5cb1a9b4fceffbcf31eb81db617..7b545189397df5c93dfba42e8dc7b062d98f47af 100644 (file)
@@ -4,12 +4,9 @@ use warnings;
 
 use File::Temp qw/tempdir/;
 use Test::More tests => 7;
+BEGIN { $ENV{AAP_ROOTDIR} = tempdir CLEANUP => 1 }
 BEGIN { use_ok('Apache2::Authen::Passphrase', qw/pwset pwcheck/) };
 
-my $tempdir = tempdir CLEANUP => 1;
-mkdir "$tempdir/us";
-$Apache2::Authen::Passphrase::rootdir = $tempdir;
-
 sub pw_ok {
   my ($user, $pass, $testname) = @_;
   eval { pwcheck $user, $pass };
This page took 0.022557 seconds and 4 git commands to generate.