Index: trunk/psLib/test/sys/tst_psLogMsg.c
===================================================================
--- trunk/psLib/test/sys/tst_psLogMsg.c	(revision 4547)
+++ 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;
+}
