Index: trunk/psLib/test/image/tst_psImage.c
===================================================================
--- trunk/psLib/test/image/tst_psImage.c	(revision 1606)
+++ trunk/psLib/test/image/tst_psImage.c	(revision 1664)
@@ -6,6 +6,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-08-23 22:36:03 $
+ *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-08-31 19:36:02 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -63,8 +63,9 @@
                                  0,1,100,1,150,100
                              };
-    unsigned int types = 12;
+    unsigned int types = 13;
     psElemType type[] = { PS_TYPE_S8, PS_TYPE_S16, PS_TYPE_S32, PS_TYPE_S64,
                           PS_TYPE_U8, PS_TYPE_U16, PS_TYPE_U32, PS_TYPE_U64,
-                          PS_TYPE_F32, PS_TYPE_F64, PS_TYPE_C32, PS_TYPE_C64 };
+                          PS_TYPE_F32, PS_TYPE_F64, PS_TYPE_C32, PS_TYPE_C64,
+                          PS_TYPE_PTR };
 
     psLogMsg(__func__,PS_LOG_INFO,"#546 - psImageAlloc shall allocate memory for a psImage structure");
@@ -74,4 +75,8 @@
 
         for (unsigned int i=0;i<sizes;i++) {
+
+            if (numRows[i] == 0 || numCols[i] == 0) {
+                psLogMsg(__func__,PS_LOG_INFO,"Following should be an error.");
+            }
 
             image = psImageAlloc(numCols[i],numRows[i],type[t]);
@@ -206,4 +211,28 @@
                         }
                     }
+                }
+                break;
+            case PS_TYPE_PTR: {
+                    unsigned int rows = numRows[i];
+                    unsigned int cols = numCols[i];
+                    psImage* temp = psImageAlloc(1,1,PS_TYPE_F32);
+
+                    for (int r=0;r<rows;r++) {
+                        for (int c=0;c<cols;c++) {
+                            image->data.PTR[r][c] = psMemIncrRefCounter(temp);
+                        }
+                    }
+                    for (int r=0;r<rows;r++) {
+                        for (int c=0;c<cols;c++) {
+                            if (image->data.PTR[r][c] != temp) {
+                                psError(__func__, "Could not set pixel in pointer image at (%d,%d): %x %x",
+                                        c,r,image->data.PTR[r][c],temp);
+                                psFree(image);
+                                psFree(temp);
+                                return 8;
+                            }
+                        }
+                    }
+                    psFree(temp);
                 }
                 break;
