Changeset 151 for trunk/t

Show
Ignore:
Timestamp:
02/08/09 20:49:38 (13 months ago)
Author:
swistow
Message:

Made scoreboard.t use a proper tempdir

This prevents the test failing if it's previously been run as another
user (e.g. if you installed it from CPAN as root)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/t/scoreboard.t

    r150 r151  
    1010use TheSchwartz; 
    1111use File::Spec qw(); 
     12# create a tmp directory with a unique name.  This stops 
     13# us conflicting with any other runs of this process and means 
     14# we tidy up after ourselves 
     15my $tempdir = tempdir( CLEANUP => 1 ); 
    1216 
    1317run_tests(10, sub { 
     
    1721    setup_dbs({prefix => $pfx}, $dbs); 
    1822 
    19     my $client = TheSchwartz->new(scoreboard => '/tmp', 
     23    my $client = TheSchwartz->new(scoreboard => $tmpdir, 
    2024                                  databases => [ 
    2125                                          map { {