Index: trunk/psLib/test/sys/tst_psString.c
===================================================================
--- trunk/psLib/test/sys/tst_psString.c	(revision 6989)
+++ trunk/psLib/test/sys/tst_psString.c	(revision 7045)
@@ -20,6 +20,6 @@
  *  @author  Eric Van Alst, MHPCC
  *
- *  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
- *  @date  $Date: 2006-04-26 02:19:23 $
+ *  @version $Revision: 1.6 $  $Name: not supported by cvs2svn $
+ *  @date  $Date: 2006-05-02 23:55:53 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -455,7 +455,7 @@
     //Return NULL for NULL inputs
     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");
-    strList = psStringSplit(NULL, NULL);
+    strList = psStringSplit(NULL, NULL, true);
     //    if (strList != NULL) {
-    if ( psListLength(strList) ) {
+    if (strList) {
         psFree(strList);
         return 1;
@@ -465,5 +465,5 @@
     //Return NULL for NULL string input
     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");
-    strList = psStringSplit(NULL, split);
+    strList = psStringSplit(NULL, split, true);
     //    if (strList != NULL) {
     if ( psListLength(strList) ) {
@@ -475,7 +475,7 @@
     //Return NULL for NULL splitter input
     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");
-    strList = psStringSplit(str, NULL);
+    strList = psStringSplit(str, NULL, true);
     //    if (strList != NULL) {
-    if ( psListLength(strList) ) {
+    if ( strList ) {
         psFree(strList);
         return 3;
@@ -484,5 +484,5 @@
     strList = NULL;
     //Return a psList* of psStrings
-    strList = psStringSplit(str, split);
+    strList = psStringSplit(str, split, true);
     if (strList->n != 4) {
         psError(PS_ERR_BAD_PARAMETER_VALUE, false,
@@ -512,5 +512,5 @@
     psFree(strList);
     //Return correct psList when using (psString, char*)
-    strList = psStringSplit(psStr, split);
+    strList = psStringSplit(psStr, split, true);
     if (strList->n != 4) {
         psError(PS_ERR_BAD_PARAMETER_VALUE, false,
@@ -540,5 +540,5 @@
     psFree(strList);
     //Return correct psList when using (char*, psString)
-    strList = psStringSplit(str, psSplit);
+    strList = psStringSplit(str, psSplit, true);
     if (strList->n != 4) {
         psError(PS_ERR_BAD_PARAMETER_VALUE, false,
@@ -568,5 +568,5 @@
     psFree(strList);
     //Return correct psList when using (psString, psString)
-    strList = psStringSplit(psStr, psSplit);
+    strList = psStringSplit(psStr, psSplit, true);
     if (strList->n != 4) {
         psError(PS_ERR_BAD_PARAMETER_VALUE, false,
@@ -597,5 +597,5 @@
     //Return correct psList output for string of zero length case
     strncpy(str, "This is,, a,, test case,, to check.", 35);
-    strList = psStringSplit(str, split);
+    strList = psStringSplit(str, split, false);
     if (strList->n != 4) {
         psError(PS_ERR_BAD_PARAMETER_VALUE, false,
@@ -687,5 +687,5 @@
     psList *nullList = NULL;
     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");
-    nullList = psStringSplit(nullTest, ",");
+    nullList = psStringSplit(nullTest, ",", true);
     //    if (nullList != NULL) {
     if ( psListLength(nullList) ) {
@@ -698,7 +698,7 @@
     //psStringSplit should return NULL for NULL input splitter
     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");
-    nullList = psStringSplit("Hello World", nullTest);
+    nullList = psStringSplit("Hello World", nullTest, true);
     //    if (nullList != NULL) {
-    if ( psListLength(nullList) ) {
+    if ( nullList ) {
         psError(PS_ERR_BAD_PARAMETER_NULL, false,
                 "psStringSplit failed to return NULL for NULL input splitter.\n");
