Index: trunk/psLib/test/sysUtils/tst_psString.c
===================================================================
--- trunk/psLib/test/sysUtils/tst_psString.c	(revision 532)
+++ trunk/psLib/test/sysUtils/tst_psString.c	(revision 543)
@@ -11,11 +11,11 @@
  *    5) Copy string to larger string - psStringNCopy
  *    6) Copy string with negative size - psStringNCopy
- 
+ * 
  *  Return:   Number of test points which failed
  *
  *  @author  Eric Van Alst, MHPCC
  *
- *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
- *  @date  $Date: 2004-04-27 22:57:09 $
+ *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
+ *  @date  $Date: 2004-04-28 22:00:02 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -27,5 +27,6 @@
 #include "psTest.h"
 
-int main(void)
+int main( int argc,
+          char * argv[] )
 {
     bool  tpResult = false;
@@ -38,9 +39,14 @@
     int   increaseSize = 5;
     int   negativeSize = -5;
+    int   result = 0;
+    int   result1 = 0;
 
     // Test point #1 Verify string copy - psStringCopy
     printPositiveTestHeader(stderr,"psStringCopy","Verify string copy");
     strResult = psStringCopy(stringval);
-    if ( strcmp(strResult, stringval) != 0 ) {
+    // Perform string compare
+    result = strcmp(strResult, stringval);
+    if ( result != 0 ) {
+        fprintf(stderr, "Failed test point #1 strcmp result = %d expected 0\n",result);
         tpResult = false;
         tpFails++;
@@ -53,5 +59,8 @@
     printPositiveTestHeader(stderr,"psStringCopy","Verify empty string copy");
     strResult = psStringCopy(emptyval);
-    if ( strcmp(strResult, emptyval) != 0 ) {
+    // Perform string compare
+    result = strcmp(strResult, emptyval);
+    if ( result != 0 ) {
+        fprintf(stderr,"Failed test point #2 strcmp result = %d expected 0\n",result);
         tpResult = false;
         tpFails++;
@@ -64,5 +73,12 @@
     printPositiveTestHeader(stderr,"psStringNCopy","Verify string copy with length");
     strResult = psStringNCopy(stringval, substringlen);
-    if ( strcmp(strResult, substringval) != 0 ) {
+    // Perform string compare and get string length
+    result = strcmp(strResult, substringval);
+    result1 = strlen(strResult);
+    if ( ( result != 0 ) ||
+            ( result1 != substringlen ) ) {
+        fprintf(stderr,"Failed test point #3 strcmp result = %d expected 0\n",result);
+        fprintf(stderr,"                     strlen result = %d expected %d\n",
+                result1, substringlen);
         tpResult = false;
         tpFails++;
@@ -75,6 +91,12 @@
     printPositiveTestHeader(stderr,"psStringNCopy", "Verify empty string copy with length");
     strResult = psStringNCopy(stringval, 0);
-    if ( (strcmp(strResult, emptyval) != 0 ) ||
-            (strlen(strResult) != strlen(emptyval) ) ) {
+    // Perform string compare and get sting length
+    result = strcmp(strResult, emptyval);
+    result1 = strlen(strResult);
+    if ( ( result != 0 ) ||
+            ( result1 != strlen(emptyval) ) ) {
+        fprintf(stderr,"Failed test point #4 strcmp result = %d expected %d\n",result,0);
+        fprintf(stderr,"                     strlen result = %d expected %d\n",result1,
+                (int)strlen(emptyval));
         tpResult = false;
         tpFails++;
@@ -87,7 +109,13 @@
     printPositiveTestHeader(stderr,"psStringNCopy", "Copy string to larger string");
     strResult = psStringNCopy(stringval, (strlen(stringval) + increaseSize));
+    // Perform string compare and get string length
+    result = strcmp(strResult, stringval);
+    result1 = strlen(strResult);
     // The strings should still compare
-    if ( ( strcmp(strResult, stringval) != 0 ) ||
-            ( strlen(strResult) != strlen(stringval) ) ) {
+    if ( ( result != 0 ) ||
+            ( result1 != strlen(stringval) ) ) {
+        fprintf(stderr,"Failed test point #5 strcmp result = %d expected %d\n",result,0);
+        fprintf(stderr,"                     strlne result = %d expected %d\n",result1,
+                (int)strlen(stringval));
         tpResult = false;
         tpFails++;
@@ -101,4 +129,6 @@
     strResult = psStringNCopy(stringval, negativeSize);
     if ( strResult != NULL ) {
+        fprintf(stderr,"Failed test point #6 return value = %ld expected NULL\n",
+                (unsigned long)strResult);
         tpResult = false;
         tpFails++;
@@ -108,4 +138,10 @@
     printFooter(stderr, "psStringNCopy", "Copy string with negative size", tpResult);
 
+    // Display test driver fail message if tpFail not zero
+    if ( tpFails != 0 ) {
+        fprintf(stderr,"Failed test driver  testpoint fail = %d expected %d\n",
+                tpFails, 0);
+    }
+
     // Return number of test points which failed
     return tpFails;
