diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-07 09:03:15 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-07 09:03:15 +0000 |
| commit | a734e447b557b2b1ce76bb28bfa38e0bae8da931 (patch) | |
| tree | 54e3a9fd444aba4946330d6a2326657140676ca1 /tests | |
| parent | 37128c34a9d2f1815923e88a517919f18a97f1be (diff) | |
[trunk] Remove TIFF warning handler. This help test suite run smoothly on windows by removing the message box.
Fixes issue 276
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/comparePGXimages.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/comparePGXimages.c b/tests/comparePGXimages.c index 77714ddc..3db1dca8 100644 --- a/tests/comparePGXimages.c +++ b/tests/comparePGXimages.c @@ -145,6 +145,12 @@ 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: + * TIFFReadDirectory: Warning, /.../data/baseline/conformance/jp2_1.tif: unknown field with tag 37724 (0x935c) encountered. + * On Win32 this open a message box by default, so remove it from the test suite: + */ + TIFFSetWarningHandler(NULL); + /* If separator is empty => nb file to read is equal to one*/ if ( strlen(separator) == 0 ) nbFilenamePGX = 1; |
