IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 852


Ignore:
Timestamp:
Jun 3, 2004, 4:29:12 PM (22 years ago)
Author:
gusciora
Message:

Fixed host matching in runTest, and added memory checks for the log message
routines.

Location:
trunk/psLib/test
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/runTest

    r731 r852  
    3030#
    3131#  $Revison:  $  $Name: not supported by cvs2svn $
    32 #  $Date: 2004-05-19 01:57:05 $
     32#  $Date: 2004-06-04 02:29:12 $
    3333#
    3434#  Copyright 2004 Maui High Performance Computering Center, University of Hawaii
     
    131131            s/\d+:\d+:\d+/ <DATE> /;
    132132            s/\s+\d+:\d+:\d+\w/ <TIME> /;
    133             s/\|[\w\.\-\_]+\|/<HOST> |/;
     133            s/\|\s*[\w\.\-\_]+\s*\|/| <HOST> |/;
    134134            # Filter lines with malloc.  This is an artifact of memory testing
    135135            # with the Mac testbed
  • trunk/psLib/test/sysUtils/tst_psLogMsg00.c

    r847 r852  
    2525    int i = 0;
    2626    int testStatus = true;
     27    int currentId = psMemGetId();
    2728
    2829    printPositiveTestHeader(stdout,
     
    5758                "default log levels",
    5859                testStatus);
     60
     61    if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
     62        psAbort(__func__,"Memory Leaks!");
     63    }
     64    psMemCheckCorruption(1);
     65
    5966    return(!testStatus);
    60 
    61 
    6267}
    6368
  • trunk/psLib/test/sysUtils/tst_psLogMsg01.c

    r584 r852  
    1313    int i = 0;
    1414    int testStatus = true;
     15    int currentId = psMemGetId();
    1516
    1617    printPositiveTestHeader(stdout,
     
    3334                "psSetLogLevel()",
    3435                testStatus);
     36
     37    if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
     38        psAbort(__func__,"Memory Leaks!");
     39    }
     40    psMemCheckCorruption(1);
     41
    3542    return(!testStatus);
    3643}
  • trunk/psLib/test/sysUtils/tst_psLogMsg02.c

    r598 r852  
    1313    int i = 0;
    1414    int testStatus = true;
     15    int currentId = psMemGetId();
    1516
    1617    printPositiveTestHeader(stdout,
     
    6566                "psSetLogFormat()",
    6667                testStatus);
     68
     69    if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
     70        psAbort(__func__,"Memory Leaks!");
     71    }
     72    psMemCheckCorruption(1);
     73
    6774    return(!testStatus);
    6875}
  • trunk/psLib/test/sysUtils/tst_psLogMsg03.c

    r832 r852  
    1414    int i = 0;
    1515    int testStatus = true;
     16    int currentId = psMemGetId();
    1617
    1718    printPositiveTestHeader(stdout,
     
    4142                "psSetLogDestination()",
    4243                testStatus);
     44
     45    if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
     46        psAbort(__func__,"Memory Leaks!");
     47    }
     48    psMemCheckCorruption(1);
     49
    4350    return(!testStatus);
    4451}
Note: See TracChangeset for help on using the changeset viewer.