Index: /trunk/psLib/test/sysUtils/Makefile
===================================================================
--- /trunk/psLib/test/sysUtils/Makefile	(revision 520)
+++ /trunk/psLib/test/sysUtils/Makefile	(revision 520)
@@ -0,0 +1,43 @@
+################################################################################
+##
+##  Makefile:   test/sysUtils
+##
+##  $Revision: 1.1 $  $Name: not supported by cvs2svn $
+##  $Date: 2004-04-27 01:44:41 $
+##
+##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+##
+###############################################################################
+
+include ../../src/Makefile.Globals
+
+PSLIB_INCL_DIR = ../../include
+
+PSLIB_LIB_DIR = ../../lib
+
+TARGET = tst_psError        \
+         atst_psAbort_01    \
+         atst_psAbort_02    \
+         atst_psAbort_03
+
+all: $(TARGET)
+
+tst_psError: tst_psError.o
+atst_psAbort_01: atst_psAbort_01.o
+atst_psAbort_02: atst_psAbort_02.o
+atst_psAbort_03: atst_psAbort_03.o
+
+clean:
+	@echo "    Deleting executable and binary files for 'test/sysUtils'"
+	$(RM) $(TARGET) *.o *.lint
+
+%.o : %.c
+	$(CC) $(CFLAGS) $(CPPFLAGS) -I$(PSLIB_INCL_DIR) -c -o $@ $< 
+
+%   : %.o
+	$(CC) $(LDFLAGS) -L$(PSLIB_LIB_DIR) -lpslib -lpstest -o $@ $<
+
+%.lint: %.c
+	splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@
+
+
Index: /trunk/psLib/test/sysUtils/atst_psAbort_01.c
===================================================================
--- /trunk/psLib/test/sysUtils/atst_psAbort_01.c	(revision 520)
+++ /trunk/psLib/test/sysUtils/atst_psAbort_01.c	(revision 520)
@@ -0,0 +1,43 @@
+/** @file  atst_psAbort_01.c
+ *
+ *  @brief Test driver for psAbort function
+ *
+ *  This test drivers contains the following test points for psAbort
+ *     1) Multiple type values in abort message
+ *
+ *  @author  Eric Van Alst, MHPCC
+ *
+ *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
+ *  @date  $Date: 2004-04-27 01:44:41 $
+ *
+ *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+ */
+
+#include "psLib.h"
+#include "psTest.h"
+
+int main ( int argc,
+           char *argv[]
+         )
+{
+    int   intval = 1;
+    long  longval = 2;
+    float floatval = 3.01;
+    char  charval = 'E';
+    char  *stringval = "E R R O R";
+
+    // Test point #1 Multiple type values placed in the error string
+    printPositiveTestHeader(stderr, "psAbort","Multiple type values in abort message");
+    psAbort(__func__,
+            "ALL TYPES intval = %d longval = %ld floatval = %f charval = %c strval = %s",
+            intval, longval, floatval, charval, stringval );
+    // Since abort should never get to the next statement it would indicate
+    // a test failure
+    printFooter(stderr,"psAbort","Multiple type values in abort message",false);
+
+    // Program execution should have ended before this statement but if it
+    // does not return a zero since the expected return value of this test
+    // is a non-zero value
+    return 0;
+}
+
Index: /trunk/psLib/test/sysUtils/atst_psAbort_02.c
===================================================================
--- /trunk/psLib/test/sysUtils/atst_psAbort_02.c	(revision 520)
+++ /trunk/psLib/test/sysUtils/atst_psAbort_02.c	(revision 520)
@@ -0,0 +1,35 @@
+/** @file  atst_psAbort_02.c
+ *
+ *  @brief Test driver for psAbort function
+ *
+ *  This test drivers contains the following test points for psAbort
+ *     2) String values in error message
+ *
+ *  @author  Eric Van Alst, MHPCC
+ *
+ *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
+ *  @date  $Date: 2004-04-27 01:44:41 $
+ *
+ *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+ */
+
+#include "psLib.h"
+#include "psTest.h"
+
+int main ( int argc,
+           char *argv[]
+         )
+{
+    // Test point #2 String values in abort message
+    printPositiveTestHeader(stderr,"psAbort","String values in abort message");
+    psAbort(PS_STRING(__LINE__), "NO_VALUES");
+    // Since abort should never get to the next statement it would indicate
+    // a test failure
+    printFooter(stderr,"psAbort","String values in abort message",false);
+
+    // Program execution should have ended before this statement but if it
+    // does not return a zero since the expected return value of this test
+    // is a non-zero value
+    return 0;
+}
+
Index: /trunk/psLib/test/sysUtils/atst_psAbort_03.c
===================================================================
--- /trunk/psLib/test/sysUtils/atst_psAbort_03.c	(revision 520)
+++ /trunk/psLib/test/sysUtils/atst_psAbort_03.c	(revision 520)
@@ -0,0 +1,35 @@
+/** @file  atst_psAbort_02.c
+ *
+ *  @brief Test driver for psAbort function
+ *
+ *  This test drivers contains the following test points for psAbort
+ *     3) Empty strings in abort message
+ *
+ *  @author  Eric Van Alst, MHPCC
+ *
+ *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
+ *  @date  $Date: 2004-04-27 01:44:41 $
+ *
+ *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+ */
+
+#include "psLib.h"
+#include "psTest.h"
+
+int main ( int argc,
+           char *argv[]
+         )
+{
+    // Test point #3 Empty strings in abort message
+    printPositiveTestHeader(stderr, "psAbort","Empty strings in abort message");
+    psAbort("", "");
+    // Since abort should never get to the next statement it would indicate
+    // a test failure
+    printFooter(stderr, "psAbort","Empty strings in abort message",false);
+
+    // Program execution should have ended before this statement but if it
+    // does not return a zero since the expected return value of this test
+    // is a non-zero value
+    return 0;
+}
+
Index: /trunk/psLib/test/sysUtils/tst_psError.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psError.c	(revision 520)
+++ /trunk/psLib/test/sysUtils/tst_psError.c	(revision 520)
@@ -0,0 +1,51 @@
+/** @file  tst_psError.c
+ *
+ *  @brief Test driver for psError function
+ *
+ *  This test driver contains the following test points for psError
+ *     1)  Multiple type values in error message
+ *     2)  String values in error message
+ *     3)  Empty strings in error message
+ *
+ *  @author  Eric Van Alst, MHPCC
+ *
+ *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
+ *  @date  $Date: 2004-04-27 01:44:41 $
+ *
+ *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+ *
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include "psLib.h"
+#include "psTest.h"
+
+int main(void)
+{
+
+    int  intval=1;
+    long longval = 2;
+    float floatval = 3.01;
+    char  charval = 'E';
+    char *stringval = "E R R O R";
+
+    // Test point #1 Multiple type values placed in the error string
+    printPositiveTestHeader(stderr,"psError","Multiple type values in error message");
+    psError(__func__,
+            "ALL TYPES intval = %d longval = %ld floatval = %f charval = %c strval = %s",
+            intval,longval,floatval,charval,stringval);
+    printFooter(stderr, "psError","Multiple type values in error message",true);
+
+    // Test point #2 String values in error message
+    printPositiveTestHeader(stderr, "psError","String values in error message");
+    psError(PS_STRING(__LINE__),"NO VALUES");
+    printFooter(stderr, "psError","String values in error message",true);
+
+    // Test point #3 Empty strings in error message
+    printPositiveTestHeader(stderr, "psError","Empty strings in error message");
+    psError("","");
+    printFooter(stderr, "psError","Empty strings in error message",true);
+    return 0;
+}
+
