IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 1, 2004, 1:04:35 PM (22 years ago)
Author:
gusciora
Message:

This is a fairly large checkin. I had been sitting on a lot of test code
that was not quite in sync with the current test harness. I modified it
somewhat so it mostly works with the test harness, though there are still
problems with the printFooter() function not having a status for "status
unknown". Also, the runTest is not correctly parsing my date strings in
psLogMsg calls. Also, I added an individual entry for each test in the
Makefile in the test directory. I did this because the generic rules were
failing, and I did not want to break the tests for those people who were
successfully using the generic rules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psLogMsg.c

    r500 r560  
    261261        head_ptr += strlen(head_ptr);
    262262    }
     263
    263264    if (head_ptr > head) {
    264265        *head_ptr++ = '|';
     
    269270    case PS_LOG_TO_STDOUT:
    270271        puts(head);
    271         vprintf(fmt, ap);
    272         if (fmt[strlen(fmt) - 1] != '\n') {
     272        if (log_msg) {
     273            vprintf(fmt, ap);
     274            if (fmt[strlen(fmt) - 1] != '\n') {
     275                putc('\n', stdout);
     276            }
     277        } else {
    273278            putc('\n', stdout);
    274279        }
     
    277282    case PS_LOG_TO_STDERR:
    278283        fputs(head, stderr);
    279         vfprintf(stderr, fmt, ap);
    280         if (fmt[strlen(fmt) - 1] != '\n') {
     284        if (log_msg) {
     285            vfprintf(stderr, fmt, ap);
     286            if (fmt[strlen(fmt) - 1] != '\n') {
     287                putc('\n', stderr);
     288            }
     289        } else {
    281290            putc('\n', stderr);
    282291        }
Note: See TracChangeset for help on using the changeset viewer.