Index: trunk/psLib/test/collections/tst_psPixels.c
===================================================================
--- trunk/psLib/test/collections/tst_psPixels.c	(revision 4156)
+++ trunk/psLib/test/collections/tst_psPixels.c	(revision 4203)
@@ -5,7 +5,7 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.6 $
+ *  @version $Revision: 1.7 $
  *           $Name: not supported by cvs2svn $
- *  @date $Date: 2005-06-08 19:48:15 $
+ *  @date $Date: 2005-06-09 23:51:49 $
  *
  *  Copyright 2005 Maui High Performance Computing Center, University of Hawaii
@@ -58,5 +58,5 @@
         return 2;
     }
-    if (p0->n != 0) {
+    if (p0->n != p0->nalloc) {
         psError(PS_ERR_UNKNOWN, true,
                 "psPixelsAlloc failed to set n = 0");
@@ -84,7 +84,7 @@
     p1->data[0].y = 2;
 
-    if (p1->n != 0) {
-        psError(PS_ERR_UNKNOWN, true,
-                "psPixelsAlloc failed to set n = 0");
+    if (p1->n != p1->nalloc) {
+        psError(PS_ERR_UNKNOWN, true,
+                "psPixelsAlloc failed to set n = %d", p1->nalloc);
         return 13;
     }
@@ -113,7 +113,7 @@
     }
 
-    if (p2->n != 0) {
-        psError(PS_ERR_UNKNOWN, true,
-                "psPixelsAlloc failed to set n = 0");
+    if (p2->n != p2->nalloc) {
+        psError(PS_ERR_UNKNOWN, true,
+                "psPixelsAlloc failed to set n = %d", p2->nalloc);
         return 13;
     }
@@ -149,5 +149,5 @@
         return 2;
     }
-    if (p0->n != 0) {
+    if (p0->n != p0->nalloc) {
         psError(PS_ERR_UNKNOWN, true,
                 "psPixelsRealloc failed to set n = 0");
