IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 16, 2006, 1:01:10 PM (20 years ago)
Author:
drobbin
Message:

Edited psMessageDestination to correctly set logFD. Updated tests - removed dest from "dest:stdout". (Code no longer requires "dest")

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/sys/tst_psLogMsg.c

    r5072 r7587  
    234234    close(fd);
    235235
    236     int fd2 = creat("/eva/log.txt", 0666);
    237     printf("--------------- psLogSetDestination(""file:/eva/log.txt"") ----------\n");
     236    int fd2 = creat("eva/log.txt", 0666);
     237    printf("--------------- psLogSetDestination(""file:eva/log.txt"") ----------\n");
    238238    //    psLogSetDestination("file:/eva/log.txt");
    239239    psLogSetDestination(fd2);
     
    261261
    262262    printf("------------- psMessageDestination(PS_LOG_TO_STDERR) -------------\n");
    263     psMessageDestination("dest:stderr");
     263    psMessageDestination("stderr");
    264264    //    psLogSetDestination(2);
    265265    for (i=0;i<10;i++) {
    266         psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
     266        psLogMsg(__func__, i, "Hello World!  My level is %d - stderr\n", i);
    267267    }
    268268
    269269    printf("------------- psMessageDestination(PS_LOG_TO_STDOUT) -------------\n");
    270     psMessageDestination("dest:stdout");
     270    psMessageDestination("stdout");
    271271    //    psLogSetDestination(1);
    272272    for (i=0;i<10;i++) {
    273         psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
     273        psLogMsg(__func__, i, "Hello World!  My level is %d - stdout\n", i);
    274274    }
    275275
     
    296296    close(fd);
    297297
    298     int fd2 = creat("/eva/log2.txt", 0666);
    299     printf("--------------- psMessageDestination(""file:/eva/log.txt"") ----------\n");
    300     psMessageDestination("file:/eva/log2.txt");
     298    int fd2 = creat("eva/log2.txt", 0666);
     299    printf("--------------- psMessageDestination(""file:eva/log.txt"") ----------\n");
     300    psMessageDestination("file:eva/log2.txt");
    301301    //    psLogSetDestination(fd2);
    302302    for ( i=0;i<10;i++) {
Note: See TracChangeset for help on using the changeset viewer.