regard_warnings,
status;
+ MagickSizeType
+ memory_resource,
+ map_resource;
+
register ssize_t
i;
tests+=ValidateImageFormatsInMemory(image_info,reference_filename,
output_filename,&fail,exception);
(void) FormatLocaleFile(stdout,"[pixel-cache: memory-mapped] ");
- (void) SetMagickResourceLimit(MemoryResource,0);
+ memory_resource=SetMagickResourceLimit(MemoryResource,0);
tests+=ValidateImageFormatsInMemory(image_info,reference_filename,
output_filename,&fail,exception);
(void) FormatLocaleFile(stdout,"[pixel-cache: disk] ");
- (void) SetMagickResourceLimit(MapResource,0);
+ map_resource=SetMagickResourceLimit(MapResource,0);
tests+=ValidateImageFormatsInMemory(image_info,reference_filename,
output_filename,&fail,exception);
+ (void) SetMagickResourceLimit(MemoryResource,memory_resource);
+ (void) SetMagickResourceLimit(MapResource,map_resource);
}
if ((type & FormatsOnDiskValidate) != 0)
{
tests+=ValidateImageFormatsOnDisk(image_info,reference_filename,
output_filename,&fail,exception);
(void) FormatLocaleFile(stdout,"[pixel-cache: memory-mapped] ");
- (void) SetMagickResourceLimit(MemoryResource,0);
+ memory_resource=SetMagickResourceLimit(MemoryResource,0);
tests+=ValidateImageFormatsOnDisk(image_info,reference_filename,
output_filename,&fail,exception);
(void) FormatLocaleFile(stdout,"[pixel-cache: disk] ");
- (void) SetMagickResourceLimit(MapResource,0);
+ map_resource=SetMagickResourceLimit(MapResource,0);
tests+=ValidateImageFormatsOnDisk(image_info,reference_filename,
output_filename,&fail,exception);
+ (void) SetMagickResourceLimit(MemoryResource,memory_resource);
+ (void) SetMagickResourceLimit(MapResource,map_resource);
}
if ((type & IdentifyValidate) != 0)
tests+=ValidateIdentifyCommand(image_info,reference_filename,