Index: trunk/psLib/test/sys/tst_psLogMsg.c
===================================================================
--- trunk/psLib/test/sys/tst_psLogMsg.c	(revision 4944)
+++ trunk/psLib/test/sys/tst_psLogMsg.c	(revision 4951)
@@ -7,4 +7,6 @@
 #include "pslib_strict.h"
 #include "psTest.h"
+#include <unistd.h>
+#include <fcntl.h>
 
 static psS32 testLogMsg00();
@@ -176,9 +178,11 @@
 {
     psS32 i = 0;
-    FILE* file;
-    char line[256];
+    //    FILE* file;
+    int fd;
+    //    char line[256];
 
     printf("--------------- psLogSetDestination(PS_LOG_NONE) ----------------\n");
-    psLogSetDestination("none");
+    //    psLogSetDestination("none");
+    psLogSetDestination(0);
     for (i=0;i<10;i++) {
         psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
@@ -186,5 +190,6 @@
 
     printf("------------- psLogSetDestination(PS_LOG_TO_STDERR) -------------\n");
-    psLogSetDestination("dest:stderr");
+    //    psLogSetDestination("dest:stderr");
+    psLogSetDestination(2);
     for (i=0;i<10;i++) {
         psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
@@ -192,15 +197,24 @@
 
     printf("------------- psLogSetDestination(PS_LOG_TO_STDOUT) -------------\n");
-    psLogSetDestination("dest:stdout");
-    for (i=0;i<10;i++) {
-        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
-    }
+    //    psLogSetDestination("dest:stdout");
+    psLogSetDestination(1);
+    for (i=0;i<10;i++) {
+        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
+    }
+
     printf("--------------- psLogSetDestination(""file:log.txt"") ---------------\n");
-    psLogSetDestination("file:log.txt");
-    for (i=0;i<10;i++) {
-        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
-    }
-
-    psLogSetDestination("none");
+    fd = creat("log.txt", 0666);
+    //    psLogSetDestination("file:log.txt");
+    psLogSetDestination(fd);
+    for (i=0;i<10;i++) {
+        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
+    }
+
+
+    //    psLogSetDestination("none");
+    FILE *file;
+    char line[257];
+    //    psLogSetDestination(-1);
+    psLogSetDestination(0);
     printf("--------------------- The Contents of log.txt -------------------\n");
     file = fopen("log.txt","r");
@@ -209,11 +223,15 @@
     }
     fclose(file);
-
+    close(fd);
+
+    int fd2 = creat("/eva/log.txt", 0666);
     printf("--------------- psLogSetDestination(""file:/eva/log.txt"") ----------\n");
-    psLogSetDestination("file:/eva/log.txt");
+    //    psLogSetDestination("file:/eva/log.txt");
+    psLogSetDestination(fd2);
     for ( i=0;i<10;i++) {
         psLogMsg(__func__, i, "Hello World! My level is %d\n", i);
     }
-
-    return 0;
-}
+    close(fd2);
+
+    return 0;
+}
Index: trunk/psLib/test/sys/tst_psTrace.c
===================================================================
--- trunk/psLib/test/sys/tst_psTrace.c	(revision 4944)
+++ trunk/psLib/test/sys/tst_psTrace.c	(revision 4951)
@@ -103,7 +103,7 @@
     (void)psTraceSetLevel(".A.B.C.D.E", 5);
 
-    psTrace(".A.C.D.C",1,"You should not see this.\n");
-    psTrace(".A.B.C.D.E",2,"You should see this.\n");
-    psTrace(".A.B.C.D.E.F",3,"You should see this too.\n");
+    psTrace(".A.C.D.C",1," ","You should not see this.\n");
+    psTrace(".A.B.C.D.E",2," ","You should see this.\n");
+    psTrace(".A.B.C.D.E.F",3," ","You should see this too.\n");
 
     psTracePrintLevels();
@@ -208,23 +208,23 @@
 
         (void)psTraceSetLevel(".", 4);
-        psTrace(".", 5, "(0) This message should not be displayed (%x)\n",
+        psTrace(".", 5, " ", "(0) This message should not be displayed (%x)\n",
                 0xbeefface);
         (void)psTraceSetLevel(".", 7);
-        psTrace(".", 5, "(0) This message should be displayed (%x)\n",
+        psTrace(".", 5, " ", "(0) This message should be displayed (%x)\n",
                 0xbeefface);
 
         (void)psTraceSetLevel(".a", 4);
-        psTrace(".a", 5, "(1) This message should not be displayed (%x)\n",
+        psTrace(".a", 5, " ", "(1) This message should not be displayed (%x)\n",
                 0xbeefface);
         (void)psTraceSetLevel(".a", 7);
-        psTrace(".a", 5, "(1) This message should be displayed (%x)\n",
+        psTrace(".a", 5, " ", "(1) This message should be displayed (%x)\n",
                 0xbeefface);
 
 
         (void)psTraceSetLevel(".a.b", 4);
-        psTrace(".a.b", 5, "(2) This message should not be displayed (%x)\n",
+        psTrace(".a.b", 5, " ", "(2) This message should not be displayed (%x)\n",
                 0xbeefface);
         (void)psTraceSetLevel(".a.b", 7);
-        psTrace(".a.b", 5, "(2) This message should be displayed (%x)\n",
+        psTrace(".a.b", 5, " ", "(2) This message should be displayed (%x)\n",
                 0xbeefface);
 
