File: jpg_nowarnings.t

package info (click to toggle)
libimage-info-perl 1.45-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 940 kB
  • sloc: perl: 3,539; makefile: 12
file content (18 lines) | stat: -rw-r--r-- 368 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use warnings;
use FindBin qw($RealBin);

use Test::More 'no_plan';

use Image::Info qw(image_info);

$^W = 1;
my @warnings;
$SIG{__WARN__} = sub { push @warnings, @_ };

{
  my $info = image_info("$RealBin/../img/test-rt133006.jpg");
  ok !$info->{error}, 'no error'
      or diag "Got Error: $info->{error}";
  is_deeply \@warnings, []; @warnings = ();
}