Index: /trunk/psLib/test/sysUtils/Makefile
===================================================================
--- /trunk/psLib/test/sysUtils/Makefile	(revision 531)
+++ /trunk/psLib/test/sysUtils/Makefile	(revision 532)
@@ -3,6 +3,6 @@
 ##  Makefile:   test/sysUtils
 ##
-##  $Revision: 1.1 $  $Name: not supported by cvs2svn $
-##  $Date: 2004-04-27 01:44:41 $
+##  $Revision: 1.2 $  $Name: not supported by cvs2svn $
+##  $Date: 2004-04-27 22:57:09 $
 ##
 ##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -19,5 +19,6 @@
          atst_psAbort_01    \
          atst_psAbort_02    \
-         atst_psAbort_03
+         atst_psAbort_03    \
+         tst_psStringCopy
 
 all: $(TARGET)
@@ -27,4 +28,5 @@
 atst_psAbort_02: atst_psAbort_02.o
 atst_psAbort_03: atst_psAbort_03.o
+tst_psStringCopy: tst_psStringCopy.o
 
 clean:
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 532)
@@ -0,0 +1,113 @@
+/** @file  tst_psString.c
+ *
+ *  @brief Test driver for psStringCopy functions
+ *
+ *  This test driver contains the following test points for psStringCopy
+ *  and psStringNCopy functions.
+ *    1) Verify string copy - psStringCopy
+ *    2) Verify empty string copy - psStringCopy
+ *    3) Verify string copy with length - psStringNCopy
+ *    4) Verify empty string copy with length - psStringNCopy
+ *    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 $
+ *
+ *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+ *
+ */
+
+#include <string.h>
+#include "psLib.h"
+#include "psTest.h"
+
+int main(void)
+{
+    bool  tpResult = false;
+    char  *stringval = "E R R O R";
+    char  *substringval = "E R R ";
+    int   substringlen = 6;
+    char  *emptyval = "";
+    int   tpFails = 0;
+    char  *strResult;
+    int   increaseSize = 5;
+    int   negativeSize = -5;
+
+    // Test point #1 Verify string copy - psStringCopy
+    printPositiveTestHeader(stderr,"psStringCopy","Verify string copy");
+    strResult = psStringCopy(stringval);
+    if ( strcmp(strResult, stringval) != 0 ) {
+        tpResult = false;
+        tpFails++;
+    } else {
+        tpResult = true;
+    }
+    printFooter(stderr, "psStringCopy","Verify string copy", tpResult);
+
+    // Test point #2 Verify empty string copy - psStringCopy
+    printPositiveTestHeader(stderr,"psStringCopy","Verify empty string copy");
+    strResult = psStringCopy(emptyval);
+    if ( strcmp(strResult, emptyval) != 0 ) {
+        tpResult = false;
+        tpFails++;
+    } else {
+        tpResult = true;
+    }
+    printFooter(stderr, "psStringCopy","Verify empty string copy", tpResult);
+
+    // Test point #3 Verify string copy with length - psStringNCopy
+    printPositiveTestHeader(stderr,"psStringNCopy","Verify string copy with length");
+    strResult = psStringNCopy(stringval, substringlen);
+    if ( strcmp(strResult, substringval) != 0 ) {
+        tpResult = false;
+        tpFails++;
+    } else {
+        tpResult = true;
+    }
+    printFooter(stderr, "psStringNCopy","Verify string copy with length", tpResult);
+
+    // Test point #4 Verify empty string copy with length - psStringNCopy
+    printPositiveTestHeader(stderr,"psStringNCopy", "Verify empty string copy with length");
+    strResult = psStringNCopy(stringval, 0);
+    if ( (strcmp(strResult, emptyval) != 0 ) ||
+            (strlen(strResult) != strlen(emptyval) ) ) {
+        tpResult = false;
+        tpFails++;
+    } else {
+        tpResult = true;
+    }
+    printFooter(stderr, "psStringNCopy","Verify empty string copy with length", tpResult);
+
+    // Test point #5 Copy string to larger string - psStringNCopy
+    printPositiveTestHeader(stderr,"psStringNCopy", "Copy string to larger string");
+    strResult = psStringNCopy(stringval, (strlen(stringval) + increaseSize));
+    // The strings should still compare
+    if ( ( strcmp(strResult, stringval) != 0 ) ||
+            ( strlen(strResult) != strlen(stringval) ) ) {
+        tpResult = false;
+        tpFails++;
+    } else {
+        tpResult = true;
+    }
+    printFooter(stderr, "psStringNCopy", "Copy string to larger string", tpResult);
+
+    // Test point #6 Copy string with negative size - psStringNCopy
+    printPositiveTestHeader(stderr,"psStringNCopy", "Copy string with negative size");
+    strResult = psStringNCopy(stringval, negativeSize);
+    if ( strResult != NULL ) {
+        tpResult = false;
+        tpFails++;
+    } else {
+        tpResult = true;
+    }
+    printFooter(stderr, "psStringNCopy", "Copy string with negative size", tpResult);
+
+    // Return number of test points which failed
+    return tpFails;
+}
+
Index: /trunk/psLib/test/sysUtils/tst_psStringCopy.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psStringCopy.c	(revision 532)
+++ /trunk/psLib/test/sysUtils/tst_psStringCopy.c	(revision 532)
@@ -0,0 +1,113 @@
+/** @file  tst_psString.c
+ *
+ *  @brief Test driver for psStringCopy functions
+ *
+ *  This test driver contains the following test points for psStringCopy
+ *  and psStringNCopy functions.
+ *    1) Verify string copy - psStringCopy
+ *    2) Verify empty string copy - psStringCopy
+ *    3) Verify string copy with length - psStringNCopy
+ *    4) Verify empty string copy with length - psStringNCopy
+ *    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 $
+ *
+ *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+ *
+ */
+
+#include <string.h>
+#include "psLib.h"
+#include "psTest.h"
+
+int main(void)
+{
+    bool  tpResult = false;
+    char  *stringval = "E R R O R";
+    char  *substringval = "E R R ";
+    int   substringlen = 6;
+    char  *emptyval = "";
+    int   tpFails = 0;
+    char  *strResult;
+    int   increaseSize = 5;
+    int   negativeSize = -5;
+
+    // Test point #1 Verify string copy - psStringCopy
+    printPositiveTestHeader(stderr,"psStringCopy","Verify string copy");
+    strResult = psStringCopy(stringval);
+    if ( strcmp(strResult, stringval) != 0 ) {
+        tpResult = false;
+        tpFails++;
+    } else {
+        tpResult = true;
+    }
+    printFooter(stderr, "psStringCopy","Verify string copy", tpResult);
+
+    // Test point #2 Verify empty string copy - psStringCopy
+    printPositiveTestHeader(stderr,"psStringCopy","Verify empty string copy");
+    strResult = psStringCopy(emptyval);
+    if ( strcmp(strResult, emptyval) != 0 ) {
+        tpResult = false;
+        tpFails++;
+    } else {
+        tpResult = true;
+    }
+    printFooter(stderr, "psStringCopy","Verify empty string copy", tpResult);
+
+    // Test point #3 Verify string copy with length - psStringNCopy
+    printPositiveTestHeader(stderr,"psStringNCopy","Verify string copy with length");
+    strResult = psStringNCopy(stringval, substringlen);
+    if ( strcmp(strResult, substringval) != 0 ) {
+        tpResult = false;
+        tpFails++;
+    } else {
+        tpResult = true;
+    }
+    printFooter(stderr, "psStringNCopy","Verify string copy with length", tpResult);
+
+    // Test point #4 Verify empty string copy with length - psStringNCopy
+    printPositiveTestHeader(stderr,"psStringNCopy", "Verify empty string copy with length");
+    strResult = psStringNCopy(stringval, 0);
+    if ( (strcmp(strResult, emptyval) != 0 ) ||
+            (strlen(strResult) != strlen(emptyval) ) ) {
+        tpResult = false;
+        tpFails++;
+    } else {
+        tpResult = true;
+    }
+    printFooter(stderr, "psStringNCopy","Verify empty string copy with length", tpResult);
+
+    // Test point #5 Copy string to larger string - psStringNCopy
+    printPositiveTestHeader(stderr,"psStringNCopy", "Copy string to larger string");
+    strResult = psStringNCopy(stringval, (strlen(stringval) + increaseSize));
+    // The strings should still compare
+    if ( ( strcmp(strResult, stringval) != 0 ) ||
+            ( strlen(strResult) != strlen(stringval) ) ) {
+        tpResult = false;
+        tpFails++;
+    } else {
+        tpResult = true;
+    }
+    printFooter(stderr, "psStringNCopy", "Copy string to larger string", tpResult);
+
+    // Test point #6 Copy string with negative size - psStringNCopy
+    printPositiveTestHeader(stderr,"psStringNCopy", "Copy string with negative size");
+    strResult = psStringNCopy(stringval, negativeSize);
+    if ( strResult != NULL ) {
+        tpResult = false;
+        tpFails++;
+    } else {
+        tpResult = true;
+    }
+    printFooter(stderr, "psStringNCopy", "Copy string with negative size", tpResult);
+
+    // Return number of test points which failed
+    return tpFails;
+}
+
Index: /trunk/psLib/test/sysUtils/verified/tst_psStringCopy.stderr
===================================================================
--- /trunk/psLib/test/sysUtils/verified/tst_psStringCopy.stderr	(revision 532)
+++ /trunk/psLib/test/sysUtils/verified/tst_psStringCopy.stderr	(revision 532)
@@ -0,0 +1,55 @@
+/----------------------------- TESTPOINT --------------------------------\
+|   TestFile: tst_psStringCopy.c                                         |
+|  TestPoint: psStringCopy{Verify string copy}                           |
+|   TestType: Positive                                                   |
+\------------------------------------------------------------------------/
+
+
+---> TESTPOINT PASSED (psStringCopy{Verify string copy} | tst_psStringCopy.c)
+
+/----------------------------- TESTPOINT --------------------------------\
+|   TestFile: tst_psStringCopy.c                                         |
+|  TestPoint: psStringCopy{Verify empty string copy}                     |
+|   TestType: Positive                                                   |
+\------------------------------------------------------------------------/
+
+
+---> TESTPOINT PASSED (psStringCopy{Verify empty string copy} | tst_psStringCopy.c)
+
+/----------------------------- TESTPOINT --------------------------------\
+|   TestFile: tst_psStringCopy.c                                         |
+|  TestPoint: psStringNCopy{Verify string copy with length}              |
+|   TestType: Positive                                                   |
+\------------------------------------------------------------------------/
+
+
+---> TESTPOINT PASSED (psStringNCopy{Verify string copy with length} | tst_psStringCopy.c)
+
+/----------------------------- TESTPOINT --------------------------------\
+|   TestFile: tst_psStringCopy.c                                         |
+|  TestPoint: psStringNCopy{Verify empty string copy with length}        |
+|   TestType: Positive                                                   |
+\------------------------------------------------------------------------/
+
+
+---> TESTPOINT PASSED (psStringNCopy{Verify empty string copy with length} | tst_psStringCopy.c)
+
+/----------------------------- TESTPOINT --------------------------------\
+|   TestFile: tst_psStringCopy.c                                         |
+|  TestPoint: psStringNCopy{Copy string to larger string}                |
+|   TestType: Positive                                                   |
+\------------------------------------------------------------------------/
+
+
+---> TESTPOINT PASSED (psStringNCopy{Copy string to larger string} | tst_psStringCopy.c)
+
+/----------------------------- TESTPOINT --------------------------------\
+|   TestFile: tst_psStringCopy.c                                         |
+|  TestPoint: psStringNCopy{Copy string with negative size}              |
+|   TestType: Positive                                                   |
+\------------------------------------------------------------------------/
+
+ <DATE> <TIME> <HOST>| psString.c     |psStringNCopy with negative count specified -5
+
+---> TESTPOINT PASSED (psStringNCopy{Copy string with negative size} | tst_psStringCopy.c)
+
