24
24
my $dir = File::Temp->newdir;
25
25
$slist->set_dir($dir);
27
$slist->get_file_info(
29
29
finished_callback => sub {
35
finished_callback => sub {
37
# inject error before to_png
38
chmod 0500, $dir; # no write access
31
# inject error before to_png
32
chmod 0500, $dir; # no write access
35
page => $slist->{data}[0][2],
36
error_callback => sub {
37
ok( 1, 'caught error injected before to_png' );
38
chmod 0700, $dir; # allow write access
41
page => $slist->{data}[0][2],
41
page => $slist->{data}[0][2],
42
queued_callback => sub {
44
# inject error during to_png
45
chmod 0500, $dir; # no write access
42
47
error_callback => sub {
43
ok( 1, 'caught error injected before to_png' );
48
ok( 1, 'to_png caught error injected in queue' );
44
49
chmod 0700, $dir; # allow write access
47
page => $slist->{data}[0][2],
48
queued_callback => sub {
50
# inject error during to_png
51
chmod 0500, $dir; # no write access
53
error_callback => sub {
55
'to_png caught error injected in queue' );
56
chmod 0700, $dir; # allow write access