Index: trunk/psLib/test/imageops/tap_psImagePixelManip.c
===================================================================
--- trunk/psLib/test/imageops/tap_psImagePixelManip.c	(revision 12094)
+++ trunk/psLib/test/imageops/tap_psImagePixelManip.c	(revision 12405)
@@ -6,6 +6,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-02-27 23:56:12 $
+ *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-03-12 20:46:45 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -16,4 +16,5 @@
 #include "tap.h"
 #include "pstap.h"
+#define VERBOSE false
 
 psS32 main(psS32 argc, char* argv[])
@@ -21,5 +22,5 @@
     psLogSetFormat("HLNM");
     psLogSetLevel(PS_LOG_INFO);
-    plan_tests(85);
+    plan_tests(86);
 
     // testImageClip()
@@ -696,6 +697,48 @@
         }
         retVal = psImageOverlaySection(img,img2,0,0,"/");
-        ok(retVal == 0, "psImageOverlaySection returned zero when checking divide-by-zero");
-        printf("XXX: retVal is %d, should be 0\n", retVal);
+        ok(retVal != 0, "psImageOverlaySection returned non-zero when checking divide-by-zero");
+        errorFlag = false;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+        for (unsigned row=0;row<r;row++)
+        {
+            for (unsigned col=0;col<c;col++) {
+                if (!isnan(img->data.F32[row][col])) {
+                    if (VERBOSE) diag("img[%d][%d] is %f, should be NAN\n", row, col, img->data.F32[row][col]);
+                    errorFlag = true;
+                }
+            }
+        }
+        ok(!errorFlag, "psImageOverlaySection() properly set data to NANs");
+
         psFree(img);
         psFree(img2);
