summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2014-03-17 16:18:22 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2014-03-17 16:18:22 +0000
commit99d1859a44f1200c03ae0453190c46f9c99440ec (patch)
treea2ead683c34f3f13587d5846d7606ac873ae44c5 /tests
parent866cd28ad4d13461d0b47a7c02b67794850d1e2d (diff)
[trunk] Explicitely reject file4/file6 scenario
Update issue 286
Diffstat (limited to 'tests')
-rw-r--r--tests/compare_images.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/compare_images.c b/tests/compare_images.c
index 38c36f51..cb1b1301 100644
--- a/tests/compare_images.c
+++ b/tests/compare_images.c
@@ -771,6 +771,13 @@ int main(int argc, char **argv)
/* Comparison of header parameters*/
printf("Step 1 -> Header comparison\n");
+ /* check dimensions (issue 286)*/
+ if(imageBase->numcomps != imageTest->numcomps )
+ {
+ printf("ERROR: dim mismatch (%d><%d)\n", imageBase->numcomps, imageTest->numcomps);
+ goto cleanup;
+ }
+
for (it_comp = 0; it_comp < imageBase->numcomps; it_comp++)
{
param_image_diff[it_comp].x0 = 0;