Index: /trunk/psLib/test/collections/tst_psList.c
===================================================================
--- /trunk/psLib/test/collections/tst_psList.c	(revision 949)
+++ /trunk/psLib/test/collections/tst_psList.c	(revision 950)
@@ -6,6 +6,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-09 19:51:08 $
+ *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-06-09 20:56:23 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -165,4 +165,8 @@
     *data = 2;
     list = psListAdd(list,data,PS_LIST_HEAD);
+    if (psMemGetRefCounter(data) != 2) {
+        psError(__func__,"psListAdd didn't increment the data reference count.");
+        return 20;
+    }
     psFree(data);
     // verify that the size incremented
@@ -181,4 +185,8 @@
     *data = 3;
     list = psListAdd(list,data,PS_LIST_TAIL);
+    if (psMemGetRefCounter(data) != 2) {
+        psError(__func__,"psListAdd didn't increment the data reference count.");
+        return 20;
+    }
     psFree(data);
     // verify that the size incremented
@@ -206,4 +214,8 @@
     psLogMsg(__func__,PS_LOG_INFO,"Following should warn with invalid insert location");
     list = psListAdd(list,data,-10);
+    if (psMemGetRefCounter(data) != 2) {
+        psError(__func__,"psListAdd didn't increment the data reference count.");
+        return 20;
+    }
     psFree(data);
     // verify that the size incremented
@@ -218,4 +230,8 @@
     *data = 5;
     list = psListAdd(list,data,1);
+    if (psMemGetRefCounter(data) != 2) {
+        psError(__func__,"psListAdd didn't increment the data reference count.");
+        return 20;
+    }
     psFree(data);
     // verify that the size incremented
@@ -229,4 +245,8 @@
     *data = 6;
     list = psListAdd(list,data,4);
+    if (psMemGetRefCounter(data) != 2) {
+        psError(__func__,"psListAdd didn't increment the data reference count.");
+        return 20;
+    }
     psFree(data);
     // verify that the size incremented
@@ -240,4 +260,8 @@
     *data = 7;
     list = psListAdd(list,data,2);
+    if (psMemGetRefCounter(data) != 2) {
+        psError(__func__,"psListAdd didn't increment the data reference count.");
+        return 20;
+    }
     psFree(data);
     // verify that the size incremented
@@ -252,4 +276,8 @@
     psLogMsg(__func__,PS_LOG_INFO,"Following should be a warning.");
     list = psListAdd(list,data,9);
+    if (psMemGetRefCounter(data) != 2) {
+        psError(__func__,"psListAdd didn't increment the data reference count.");
+        return 20;
+    }
     psFree(data);
     // verify that the size incremented
