[trunk] Also override the default error handler for TIFF files
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Fri, 7 Mar 2014 14:33:03 +0000 (14:33 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Fri, 7 Mar 2014 14:33:03 +0000 (14:33 +0000)
tests/comparePGXimages.c

index c6ccf488937488746ad245c8dbd72af6c5dba573..978b9610349745d27f7144de69d5d40137e05fcc 100644 (file)
@@ -149,11 +149,13 @@ static opj_image_t* readImageFromFileTIF(const char* filename, int nbFilenamePGX
   opj_image_cmptparm_t* param_image_read;
   int** data;
 
-  /* conformance test suite produce annoying warning:
+  /* conformance test suite produce annoying warning/error:
    * TIFFReadDirectory: Warning, /.../data/baseline/conformance/jp2_1.tif: unknown field with tag 37724 (0x935c) encountered.
+   * TIFFOpen: /.../data/baseline/nonregression/opj_jp2_1.tif: Cannot open.
    * On Win32 this open a message box by default, so remove it from the test suite:
    */
   TIFFSetWarningHandler(NULL);
+  TIFFSetErrorHandler(NULL);
 
   /* If separator is empty => nb file to read is equal to one*/
   if ( strlen(separator) == 0 )