Index: trunk/psLib/test/imageops/tst_psImageStats.c
===================================================================
--- trunk/psLib/test/imageops/tst_psImageStats.c	(revision 6306)
+++ trunk/psLib/test/imageops/tst_psImageStats.c	(revision 6750)
@@ -543,9 +543,10 @@
     psRegion reg;
     reg.x0 = 0;
-    reg.x1 = 1;
+    reg.x1 = 0;
     reg.y0 = 0;
-    reg.y1 = 5;
+    reg.y1 = 4;
+
+    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");
     numPix = psImageCountPixelMask(in, reg, 1);
-
     if (numPix != -1) {
         psError(PS_ERR_BAD_PARAMETER_VALUE, false,
@@ -587,5 +588,5 @@
     if (numPix2 != 2) {
         psError(PS_ERR_BAD_PARAMETER_VALUE, false,
-                "psImageCountPixelMask returned incorrect pixel count %ld\n", numPix2);
+                "psImageCountPixelMask returned incorrect pixel count %ld (!=2)\n", numPix2);
         return 4;
     }
@@ -613,4 +614,5 @@
     reg.x1 = 1;
     reg.y1 = 1;
+    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");
     numPix2 = psImageCountPixelMask(in2, reg, 1);
     if (numPix2 != -1) {
