From 07b0697bc1e5a0bddc29f34fbf32a53040b995a7 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Sat, 26 May 2012 12:33:49 +1000 Subject: [PATCH] adjust the test error messages to match the new module load errors --- t/t1000files.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/t1000files.t b/t/t1000files.t index 80834102..0557f37e 100644 --- a/t/t1000files.t +++ b/t/t1000files.t @@ -92,7 +92,7 @@ is_deeply([ Imager->get_file_limits() ], [ 0, 0, 0 ], my $data = "abc"; ok(!Imager->new(data => $data, filetype => "bad"), "try to read an bad (other load failure) file type"); - like(Imager->errstr, qr(^format 'bad' not supported - formats .* available for reading - This module fails to load$), + like(Imager->errstr, qr(^format 'bad' not supported - formats .* available for reading - This module fails to load loading Imager/File/BAD.pm$), "check error message"); } { @@ -100,7 +100,7 @@ is_deeply([ Imager->get_file_limits() ], [ 0, 0, 0 ], my $im = Imager->new(xsize => 10, ysize => 10); ok(!$im->write(data => \$data, type => "bad"), "try to write an bad file type"); - like($im->errstr, qr(^format 'bad' not supported - formats .* available for writing - This module fails to load$), + like($im->errstr, qr(^format 'bad' not supported - formats .* available for writing - This module fails to load loading Imager/File/BAD.pm$), "check error message"); } } -- 2.39.5