]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 8 Nov 2012 16:44:00 +0000 (16:44 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 8 Nov 2012 16:44:00 +0000 (16:44 +0000)
tests/validate.c

index 7b391801eab3f1d00b72d2e7c11001cfdab1b6b2..64b3ec1b77a3f5db3aae016eb4ff7febab326199 100644 (file)
@@ -1483,8 +1483,20 @@ int main(int argc,char **argv)
             tests+=ValidateImageFormatsInMemory(image_info,reference_filename,
               output_filename,&fail,exception);
           if ((type & FormatsOnDiskValidate) != 0)
-            tests+=ValidateImageFormatsOnDisk(image_info,reference_filename,
-              output_filename,&fail,exception);
+            {
+              /*
+                Validate image formats on disk with pixel cache in
+                memory, memory-mapped, and on disk.
+              */
+              tests+=ValidateImageFormatsOnDisk(image_info,reference_filename,
+                output_filename,&fail,exception);
+              (void) SetMagickResourceLimit(MemoryResource,0);
+              tests+=ValidateImageFormatsOnDisk(image_info,reference_filename,
+                output_filename,&fail,exception);
+              (void) SetMagickResourceLimit(MapResource,0);
+              tests+=ValidateImageFormatsOnDisk(image_info,reference_filename,
+                output_filename,&fail,exception);
+            }
           if ((type & IdentifyValidate) != 0)
             tests+=ValidateIdentifyCommand(image_info,reference_filename,
               output_filename,&fail,exception);