Index: /trunk/psLib/test/sysUtils/Makefile
===================================================================
--- /trunk/psLib/test/sysUtils/Makefile	(revision 583)
+++ /trunk/psLib/test/sysUtils/Makefile	(revision 584)
@@ -3,6 +3,6 @@
 ##  Makefile:   test/sysUtils
 ##
-##  $Revision: 1.6 $  $Name: not supported by cvs2svn $
-##  $Date: 2004-05-01 23:04:35 $
+##  $Revision: 1.7 $  $Name: not supported by cvs2svn $
+##  $Date: 2004-05-06 00:20:50 $
 ##
 ##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -10,39 +10,53 @@
 ###############################################################################
 
-###############################################################################
-#    Note: I added specific entries for the psTrace files.  The reason I did
-#    this was because the generic rules were failing on the existing test
-#    code (and hence, on my tst_psTraceXX.c code as well).  I am tempted to
-#    fix the generic rules, but that might break existing codes.  When this
-#    problem is resolved, I'll remove the specific rules for psTrace.  -GLG
-#    Also, psLogMsg.
-#    Also, psHash.
-###############################################################################
 include ../../src/Makefile.Globals
 
 PSLIB_INCL_DIR = ../../include
+
 PSLIB_LIB_DIR = ../../lib
 
-TARGET = tst_psError        \
-         tstMemory          \
-         atst_psAbort_01    \
-         atst_psAbort_02    \
-         atst_psAbort_03    \
-         tst_psStringCopy
-TARGET_TRACE = tst_psTrace00 tst_psTrace01 tst_psTrace02 tst_psTrace03 \
-               tst_psTrace04
-TARGET_LOGMSG = tst_psLogMsg00 tst_psLogMsg01 tst_psLogMsg02 tst_psLogMsg03
-TARGET_HASH = tst_psHash00 tst_psHash01 tst_psHash02 tst_psHash03 tst_psHash04
+TARGET = atst_psAbort_01  \
+         atst_psAbort_02  \
+         atst_psAbort_03  \
+         tstMemory        \
+         tst_psError      \
+         tst_psHash00     \
+         tst_psHash01     \
+         tst_psHash02     \
+         tst_psHash03     \
+         tst_psHash04     \
+         tst_psLogMsg00   \
+         tst_psLogMsg01   \
+         tst_psLogMsg02   \
+         tst_psLogMsg03   \
+         tst_psStringCopy \
+         tst_psTrace00    \
+         tst_psTrace01    \
+         tst_psTrace02    \
+         tst_psTrace03    \
+         tst_psTrace04
 
-all:		$(TARGET)
-psTrace:	$(TARGET_TRACE)
-psLogMsg:	$(TARGET_LOGMSG)
-psHash:	$(TARGET_HASH)
+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
+tstMemory: tstMemory.o
+tst_psError: tst_psError.o   
+tst_psHash00: tst_psHash00.o  
+tst_psHash01: tst_psHash01.o  
+tst_psHash02: tst_psHash02.o 
+tst_psHash03: tst_psHash03.o 
+tst_psHash04: tst_psHash04.o  
+tst_psLogMsg00: tst_psLogMsg00.o
+tst_psLogMsg01: tst_psLogMsg01.o
+tst_psLogMsg02: tst_psLogMsg02.o
+tst_psLogMsg03: tst_psLogMsg03.o
 tst_psStringCopy: tst_psStringCopy.o
+tst_psTrace00: tst_psTrace00.o 
+tst_psTrace01: tst_psTrace01.o
+tst_psTrace02: tst_psTrace02.o
+tst_psTrace03: tst_psTrace03.o 
+tst_psTrace04: tst_psTrace04.o
 
 clean:
@@ -50,55 +64,12 @@
 	$(RM) $(TARGET) *.o *.lint
 
-tst_psHash00:	tst_psHash00.c
-	$(CC) tst_psHash00.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psHash00
-
-tst_psHash01:	tst_psHash01.c
-	$(CC) tst_psHash01.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psHash01
-
-tst_psHash02:	tst_psHash02.c
-	$(CC) tst_psHash02.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psHash02
-
-tst_psHash03:	tst_psHash03.c
-	$(CC) tst_psHash03.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psHash03
-
-tst_psHash04:	tst_psHash04.c
-	$(CC) tst_psHash04.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psHash04
-
-tst_psLogMsg00:	tst_psLogMsg00.c
-	$(CC) tst_psLogMsg00.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psLogMsg00
-
-tst_psLogMsg01:	tst_psLogMsg01.c
-	$(CC) tst_psLogMsg01.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psLogMsg01
-
-tst_psLogMsg02:	tst_psLogMsg02.c
-	$(CC) tst_psLogMsg02.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psLogMsg02
-
-tst_psLogMsg03:	tst_psLogMsg03.c
-	$(CC) tst_psLogMsg03.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psLogMsg03
-
-tst_psTrace00:	tst_psTrace00.c
-	$(CC) tst_psTrace00.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psTrace00
-
-tst_psTrace01:	tst_psTrace01.c
-	$(CC) tst_psTrace01.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psTrace01
-
-tst_psTrace02:	tst_psTrace02.c
-	$(CC) tst_psTrace02.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psTrace02
-
-tst_psTrace03:	tst_psTrace03.c
-	$(CC) tst_psTrace03.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psTrace03
-
-tst_psTrace04:	tst_psTrace04.c
-	$(CC) tst_psTrace04.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psTrace04
-
 %.o : %.c
-	$(CC) $(CFLAGS) $(CPPFLAGS) -I.. -I$(PSLIB_INCL_DIR) -c -o $@ $<
+	$(CC) $(CFLAGS) $(CPPFLAGS) -I$(PSLIB_INCL_DIR) -c -o $@ $< 
 
 %   : %.o
-	$(CC) $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -o $@ $<
+	$(CC) $(LDFLAGS) -L$(PSLIB_LIB_DIR) -lpslib -lpstest -o $@ $<
 
 %.lint: %.c
 	splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@
 
-distclean:
-	rm -rf $(TARGET_TRACE) $(TARGET_LOGMSG) $(TARGET_HASH)
+
Index: /trunk/psLib/test/sysUtils/tst_psHash00.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psHash00.c	(revision 583)
+++ /trunk/psLib/test/sysUtils/tst_psHash00.c	(revision 584)
@@ -7,5 +7,5 @@
 #include "psHash.h"
 #define NUM_HASH_TABLE_BUCKETS 10
-main()
+int main()
 {
     psHash *myHashTable = NULL;
@@ -26,5 +26,5 @@
     if (myHashTable->nbucket != NUM_HASH_TABLE_BUCKETS) {
         fprintf(stderr, "%s: myHashTable->nbucket not set properly.\n",
-                __func__, i);
+                __func__);
         testStatus = false;
 
@@ -33,5 +33,5 @@
     if (myHashTable->buckets == NULL) {
         fprintf(stderr, "%s: myHashTable->buckets is NULL.\n",
-                __func__, i);
+                __func__);
         testStatus = false;
 
@@ -51,4 +51,4 @@
                 testStatus);
 
-    exit(!testStatus);
+    return (!testStatus);
 }
Index: /trunk/psLib/test/sysUtils/tst_psHash01.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psHash01.c	(revision 583)
+++ /trunk/psLib/test/sysUtils/tst_psHash01.c	(revision 584)
@@ -32,9 +32,8 @@
 }
 
-main()
+int main()
 {
     psHash *myHashTable = NULL;
     int testStatus      = true;
-    int i               = 0;
 
     printPositiveTestHeader(stdout,
@@ -68,4 +67,4 @@
                 testStatus);
 
-    exit(!testStatus);
+    return (!testStatus);
 }
Index: /trunk/psLib/test/sysUtils/tst_psHash02.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psHash02.c	(revision 583)
+++ /trunk/psLib/test/sysUtils/tst_psHash02.c	(revision 584)
@@ -6,4 +6,5 @@
  *****************************************************************************/
 #include <stdio.h>
+#include <string.h>
 #include "pslib.h"
 #include "psTest.h"
@@ -32,5 +33,5 @@
 }
 
-main()
+int main()
 {
     psHash *myHashTable = NULL;
@@ -68,4 +69,4 @@
                 testStatus);
 
-    exit(!testStatus);
+    return (!testStatus);
 }
Index: /trunk/psLib/test/sysUtils/tst_psHash03.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psHash03.c	(revision 583)
+++ /trunk/psLib/test/sysUtils/tst_psHash03.c	(revision 584)
@@ -5,4 +5,5 @@
  *****************************************************************************/
 #include <stdio.h>
+#include <string.h>
 #include "pslib.h"
 #include "psTest.h"
@@ -31,5 +32,5 @@
 }
 
-main()
+int main()
 {
     psHash *myHashTable = NULL;
@@ -81,4 +82,4 @@
                 testStatus);
 
-    exit(!testStatus);
+    return (!testStatus);
 }
Index: /trunk/psLib/test/sysUtils/tst_psHash04.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psHash04.c	(revision 583)
+++ /trunk/psLib/test/sysUtils/tst_psHash04.c	(revision 584)
@@ -29,10 +29,9 @@
 }
 
-main()
+int main()
 {
     psHash *myHashTable = NULL;
     int testStatus      = true;
     int i               = 0;
-    ID *id              = NULL;
     char *myKeys[] = {"ENTRY00", "ENTRY01", "ENTRY02", "ENTRY03", NULL};
     char *myData[] = {"IDA", "IDB", "IDC", "IDD", NULL};
@@ -60,4 +59,4 @@
                 testStatus);
 
-    exit(!testStatus);
+    return(!testStatus);
 }
Index: /trunk/psLib/test/sysUtils/tst_psLogMsg00.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psLogMsg00.c	(revision 583)
+++ /trunk/psLib/test/sysUtils/tst_psLogMsg00.c	(revision 584)
@@ -6,8 +6,7 @@
 #include "psTest.h"
 
-main()
+int main()
 {
     int i = 0;
-    int lev = 0;
     int testStatus = true;
 
@@ -26,4 +25,4 @@
                 "default log levels",
                 testStatus);
-    exit(!testStatus);
+    return(!testStatus);
 }
Index: /trunk/psLib/test/sysUtils/tst_psLogMsg01.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psLogMsg01.c	(revision 583)
+++ /trunk/psLib/test/sysUtils/tst_psLogMsg01.c	(revision 584)
@@ -9,8 +9,7 @@
 #include "psTest.h"
 
-main()
+int main()
 {
     int i = 0;
-    int lev = 0;
     int testStatus = true;
 
@@ -34,4 +33,4 @@
                 "psSetLogLevel()",
                 testStatus);
-    exit(!testStatus);
+    return(!testStatus);
 }
Index: /trunk/psLib/test/sysUtils/tst_psLogMsg02.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psLogMsg02.c	(revision 583)
+++ /trunk/psLib/test/sysUtils/tst_psLogMsg02.c	(revision 584)
@@ -9,8 +9,7 @@
 #include "psTest.h"
 
-main()
+int main()
 {
     int i = 0;
-    int lev = 0;
     int testStatus = true;
 
@@ -66,4 +65,4 @@
                 "psSetLogFormat()",
                 testStatus);
-    exit(!testStatus);
+    return(!testStatus);
 }
Index: /trunk/psLib/test/sysUtils/tst_psLogMsg03.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psLogMsg03.c	(revision 583)
+++ /trunk/psLib/test/sysUtils/tst_psLogMsg03.c	(revision 584)
@@ -10,8 +10,7 @@
 #include "psTest.h"
 
-main()
+int main()
 {
     int i = 0;
-    int lev = 0;
     int testStatus = true;
 
@@ -42,4 +41,4 @@
                 "psSetLogDestination()",
                 testStatus);
-    exit(!testStatus);
+    return(!testStatus);
 }
Index: /trunk/psLib/test/sysUtils/tst_psTrace00.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psTrace00.c	(revision 583)
+++ /trunk/psLib/test/sysUtils/tst_psTrace00.c	(revision 584)
@@ -6,5 +6,5 @@
 #include "psTest.h"
 
-main()
+int main()
 {
     int i = 0;
@@ -59,4 +59,4 @@
                 "Testing psSetTraceLevel and psGetTraceLevel",
                 testStatus);
-    exit(!testStatus);
+    return(!testStatus);
 }
Index: /trunk/psLib/test/sysUtils/tst_psTrace01.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psTrace01.c	(revision 583)
+++ /trunk/psLib/test/sysUtils/tst_psTrace01.c	(revision 584)
@@ -6,5 +6,5 @@
 #include "psTest.h"
 
-main()
+int main()
 {
     int i = 0;
@@ -45,4 +45,4 @@
                 successFlag);
 
-    exit(!successFlag);
+    return(!successFlag);
 }
Index: /trunk/psLib/test/sysUtils/tst_psTrace02.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psTrace02.c	(revision 583)
+++ /trunk/psLib/test/sysUtils/tst_psTrace02.c	(revision 584)
@@ -7,10 +7,6 @@
 #include "psTest.h"
 
-main()
+int main()
 {
-    int i = 0;
-    int lev = 0;
-    int errorFlag = 0;
-
     printPositiveTestHeader(stdout,
                             "psTrace functions",
@@ -44,4 +40,4 @@
                 true);
 
-    exit(0);
+    return(0);
 }
Index: /trunk/psLib/test/sysUtils/tst_psTrace03.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psTrace03.c	(revision 583)
+++ /trunk/psLib/test/sysUtils/tst_psTrace03.c	(revision 584)
@@ -7,5 +7,5 @@
 #include "psTest.h"
 
-main()
+int main()
 {
     printPositiveTestHeader(stdout,
@@ -36,4 +36,4 @@
                 true);
 
-    exit(0);
+    return(0);
 }
Index: /trunk/psLib/test/sysUtils/tst_psTrace04.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psTrace04.c	(revision 583)
+++ /trunk/psLib/test/sysUtils/tst_psTrace04.c	(revision 584)
@@ -7,5 +7,5 @@
 #include "psTest.h"
 
-main()
+int main()
 {
     printPositiveTestHeader(stdout,
@@ -45,5 +45,5 @@
                     "psTraceReset() did not reset all levels of the tree.",
                     false);
-        exit(1);
+        return(1);
     } else {
         printFooter(stdout,
@@ -51,5 +51,5 @@
                     "psTraceReset()",
                     true);
-        exit(0);
+        return(0);
     }
 }
