Add the aap-passwd utility and the AAP_ROOTDIR environment variable
[apache2-authen-passphrase.git] / t / Apache2-Authen-Passphrase.t
index 0ebf90d4c1419926ddb68a32f7f5c3b3d68ce254..7b545189397df5c93dfba42e8dc7b062d98f47af 100644 (file)
@@ -4,10 +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/) };
 
-$Apache2::Authen::Passphrase::rootdir = tempdir CLEANUP => 1;
-
 sub pw_ok {
   my ($user, $pass, $testname) = @_;
   eval { pwcheck $user, $pass };
This page took 0.00892 seconds and 4 git commands to generate.