Index: /trunk/psLib/test/collections/tst_psDlist.c
===================================================================
--- /trunk/psLib/test/collections/tst_psDlist.c	(revision 916)
+++ /trunk/psLib/test/collections/tst_psDlist.c	(revision 917)
@@ -6,6 +6,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-08 02:17:49 $
+ *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-06-08 02:41:19 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -727,4 +727,24 @@
     }
 
+    // now, see what happens with a zero-size vector/list
+    vec = psVectorAlloc(1,PS_TYPE_PTR);
+    vec->n = 0;
+    list = psVectorToDlist(vec);
+    if (list == NULL) {
+        psError(__func__,"psVectorToDlist didn't create an empty list from an empty vector.");
+        return 1;
+    }
+    psVectorFree(vec);
+    psDlistFree(list,PS_FREE);
+
+    list = psDlistAlloc(NULL);
+    vec = psDlistToVector(list);
+    if (vec == NULL) {
+        psError(__func__,"psVectorToDlist didn't create an empty vector from an empty list.");
+        return 1;
+    }
+    psVectorFree(vec);
+    psDlistFree(list,PS_FREE);
+
     psMemCheckLeaks(currentId,NULL,NULL);
     psMemCheckCorruption(1);
