{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
- (void) LogMagickEvent(ExceptionEvent,GetMagickModule(),
- "%s",exception->reason);
+ (void) LogMagickEvent(ExceptionEvent,GetMagickModule(),"%s",
+ exception->reason);
(*fail)++;
continue;
}
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
- (void) LogMagickEvent(ExceptionEvent,GetMagickModule(),
- "%s",exception->reason);
+ (void) LogMagickEvent(ExceptionEvent,GetMagickModule(),"%s",
+ exception->reason);
(*fail)++;
continue;
}
(void) CopyMagickString(image_info->filename,reference_filename,
MagickPathExtent);
reference_image=ReadImage(image_info,exception);
- if (reference_image == (Image *) NULL ||
- exception->severity >= ErrorException)
+ if ((reference_image == (Image *) NULL) ||
+ (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
- if (exception->reason)
- (void) FormatLocaleFile(stdout,
- " reason:%s\n",exception->reason);
+ if (exception->reason != (char *) NULL)
+ (void) FormatLocaleFile(stdout," reason:%s\n",exception->reason);
CatchException(exception);
(*fail)++;
continue;
(void) FormatLocaleString(reference_image->filename,MagickPathExtent,
"%s:%s",reference_formats[i].magick,output_filename);
status=SetImageType(reference_image,reference_types[j].type,exception);
- if (status == MagickFalse || exception->severity >= ErrorException)
+ if (status == MagickFalse || (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
- if (exception->reason)
- (void) FormatLocaleFile(stdout,
- " reason:%s\n",exception->reason);
+ if (exception->reason != (char *) NULL)
+ (void) FormatLocaleFile(stdout," reason:%s\n",exception->reason);
CatchException(exception);
(*fail)++;
reference_image=DestroyImage(reference_image);
continue;
}
status=SetImageDepth(reference_image,reference_types[j].depth,exception);
- if (status == MagickFalse || exception->severity >= ErrorException)
+ if (status == MagickFalse || (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
reference_image->compression=reference_formats[i].compression;
status=WriteImage(image_info,reference_image,exception);
reference_image=DestroyImage(reference_image);
- if (status == MagickFalse || exception->severity >= ErrorException)
+ if (status == MagickFalse || (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
- if (exception->reason)
- (void) FormatLocaleFile(stdout,
- " reason:%s\n",exception->reason);
+ if (exception->reason != (char *) NULL)
+ (void) FormatLocaleFile(stdout," reason:%s\n",exception->reason);
CatchException(exception);
(*fail)++;
continue;
reference_formats[i].magick,output_filename);
ping_image=PingImage(image_info,exception);
if (ping_image == (Image *) NULL ||
- exception->severity >= ErrorException)
+ (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
- if (exception->reason)
- (void) FormatLocaleFile(stdout,
- " reason:%s\n",exception->reason);
+ if (exception->reason != (char *) NULL)
+ (void) FormatLocaleFile(stdout," reason:%s\n",exception->reason);
CatchException(exception);
(*fail)++;
continue;
Read reference image.
*/
reference_image=ReadImage(image_info,exception);
- if (reference_image == (Image *) NULL ||
- exception->severity >= ErrorException)
+ if ((reference_image == (Image *) NULL) ||
+ (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
- if (exception->reason)
- (void) FormatLocaleFile(stdout,
- " reason:%s\n",exception->reason);
+ if (exception->reason != (char *) NULL)
+ (void) FormatLocaleFile(stdout," reason:%s\n",exception->reason);
CatchException(exception);
(*fail)++;
continue;
reference_image->compression=reference_formats[i].compression;
length=8192;
blob=ImageToBlob(image_info,reference_image,&length,exception);
- if (blob == (unsigned char *) NULL ||
- exception->severity >= ErrorException)
+ if ((blob == (unsigned char *) NULL) ||
+ (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
- if (exception->reason)
- (void) FormatLocaleFile(stdout,
- " reason:%s\n",exception->reason);
+ if (exception->reason != (char *) NULL)
+ (void) FormatLocaleFile(stdout," reason:%s\n",exception->reason);
CatchException(exception);
(*fail)++;
reference_image=DestroyImage(reference_image);
*/
ping_image=PingBlob(image_info,blob,length,exception);
if (ping_image == (Image *) NULL ||
- exception->severity >= ErrorException)
+ (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
- if (exception->reason)
- (void) FormatLocaleFile(stdout,
- " reason:%s\n",exception->reason);
+ if (exception->reason != (char *) NULL)
+ (void) FormatLocaleFile(stdout," reason:%s\n",exception->reason);
CatchException(exception);
(*fail)++;
blob=(unsigned char *) RelinquishMagickMemory(blob);
reconstruct_image=BlobToImage(image_info,blob,length,exception);
blob=(unsigned char *) RelinquishMagickMemory(blob);
if (reconstruct_image == (Image *) NULL ||
- exception->severity >= ErrorException)
+ (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
- if (exception->reason)
- (void) FormatLocaleFile(stdout,
- " reason:%s\n",exception->reason);
+ if (exception->reason != (char *) NULL)
+ (void) FormatLocaleFile(stdout," reason:%s\n",exception->reason);
CatchException(exception);
(*fail)++;
reference_image=DestroyImage(reference_image);
reconstruct_image=DestroyImage(reconstruct_image);
reference_image=DestroyImage(reference_image);
if (difference_image == (Image *) NULL ||
- exception->severity >= ErrorException)
+ (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
- if (exception->reason)
- (void) FormatLocaleFile(stdout,
- " reason:%s\n",exception->reason);
+ if (exception->reason != (char *) NULL)
+ (void) FormatLocaleFile(stdout," reason:%s\n",exception->reason);
CatchException(exception);
(*fail)++;
continue;
(void) CopyMagickString(image_info->filename,reference_filename,
MagickPathExtent);
reference_image=ReadImage(image_info,exception);
- if (reference_image == (Image *) NULL ||
- exception->severity >= ErrorException)
+ if ((reference_image == (Image *) NULL) ||
+ (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
- if (exception->reason)
- (void) FormatLocaleFile(stdout,
- " reason:%s\n",exception->reason);
+ if (exception->reason != (char *) NULL)
+ (void) FormatLocaleFile(stdout," reason:%s\n",exception->reason);
CatchException(exception);
(*fail)++;
continue;
(void) FormatLocaleString(reference_image->filename,MagickPathExtent,
"%s:%s",reference_formats[i].magick,output_filename);
status=SetImageType(reference_image,reference_types[j].type,exception);
- if (status == MagickFalse || exception->severity >= ErrorException)
+ if (status == MagickFalse || (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
- if (exception->reason)
- (void) FormatLocaleFile(stdout,
- " reason:%s\n",exception->reason);
+ if (exception->reason != (char *) NULL)
+ (void) FormatLocaleFile(stdout," reason:%s\n",exception->reason);
CatchException(exception);
(*fail)++;
reference_image=DestroyImage(reference_image);
continue;
}
status=SetImageDepth(reference_image,reference_types[j].depth,exception);
- if (status == MagickFalse || exception->severity >= ErrorException)
+ if (status == MagickFalse || (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
reference_image->compression=reference_formats[i].compression;
status=WriteImage(image_info,reference_image,exception);
reference_image=DestroyImage(reference_image);
- if (status == MagickFalse || exception->severity >= ErrorException)
+ if (status == MagickFalse || (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
- if (exception->reason)
- (void) FormatLocaleFile(stdout,
- " reason:%s\n",exception->reason);
+ if (exception->reason != (char *) NULL)
+ (void) FormatLocaleFile(stdout," reason:%s\n",exception->reason);
CatchException(exception);
(*fail)++;
continue;
(void) FormatLocaleString(image_info->filename,MagickPathExtent,"%s:%s",
reference_formats[i].magick,output_filename);
reference_image=ReadImage(image_info,exception);
- if (reference_image == (Image *) NULL ||
- exception->severity >= ErrorException)
+ if ((reference_image == (Image *) NULL) ||
+ (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
reference_formats[i].magick,output_filename);
reconstruct_image=ReadImage(image_info,exception);
if (reconstruct_image == (Image *) NULL ||
- exception->severity >= ErrorException)
+ (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
reconstruct_image=DestroyImage(reconstruct_image);
reference_image=DestroyImage(reference_image);
if (difference_image == (Image *) NULL ||
- exception->severity >= ErrorException)
+ (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
(void) CopyMagickString(image_info->filename,reference_filename,
MagickPathExtent);
reference_image=ReadImage(image_info,exception);
- if (reference_image == (Image *) NULL ||
- exception->severity >= ErrorException)
+ if ((reference_image == (Image *) NULL) ||
+ (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
reference_image->rows*reference_storage[j].quantum;
pixels=(unsigned char *) AcquireQuantumMemory(length,sizeof(*pixels));
if (pixels == (unsigned char *) NULL ||
- exception->severity >= ErrorException)
+ (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
status=ExportImagePixels(reference_image,0,0,reference_image->columns,
reference_image->rows,reference_map[i],reference_storage[j].type,pixels,
exception);
- if (status == MagickFalse || exception->severity >= ErrorException)
+ if (status == MagickFalse || (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
status=ImportImagePixels(reference_image,0,0,reference_image->columns,
reference_image->rows,reference_map[i],reference_storage[j].type,
pixels,exception);
- if (status == MagickFalse || exception->severity >= ErrorException)
+ if (status == MagickFalse || (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
reconstruct_image->rows,reference_map[i],reference_storage[j].type,
pixels,exception);
pixels=(unsigned char *) RelinquishMagickMemory(pixels);
- if (status == MagickFalse || exception->severity >= ErrorException)
+ if (status == MagickFalse || (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());
reconstruct_image=DestroyImage(reconstruct_image);
reference_image=DestroyImage(reference_image);
if (difference_image == (Image *) NULL ||
- exception->severity >= ErrorException)
+ (exception->severity >= ErrorException))
{
(void) FormatLocaleFile(stdout,"... fail @ %s/%s/%lu.\n",
GetMagickModule());