IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 10, 2008, 10:58:28 AM (18 years ago)
Author:
jhoblitt
Message:

update pmConfigConvertFilename() API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/test/config/tap_pmConfig.c

    r15986 r18063  
    2020 * XXXX: Must determine what to do with NULL arguments, then test it.
    2121 *
    22  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    23  *  @date $Date: 2008-01-02 20:49:09 $
     22 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     23 *  @date $Date: 2008-06-10 20:58:28 $
    2424 *
    2525 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    998998        pmConfig *config = pmConfigAlloc();
    999999        bool create = false;
    1000         bool rc = pmConfigConvertFilename(NULL, (const pmConfig *) config, create);
     1000        bool rc = pmConfigConvertFilename(NULL, (const pmConfig *) config, create, false);
    10011001        ok(rc == false, "pmConfigConvertFilename() returned FALSE with NULL filename pointer");
    10021002        psErr *tmpErr = psErrorLast();
     
    10161016        pmConfig *config = pmConfigAlloc();
    10171017        bool create = false;
    1018         bool rc = pmConfigConvertFilename(name, NULL, create);
     1018        bool rc = pmConfigConvertFilename(name, NULL, create, false);
    10191019        ok(rc == false, "pmConfigConvertFilename() returned FALSE with NULL config pointer");
    10201020        psErr *tmpErr = psErrorLast();
     
    10511051        ok(rc == true, "pmConfigFileRead() was successful");
    10521052        bool create = false;
    1053         psString tmpStr = pmConfigConvertFilename(filename, (const pmConfig *) config, create);
     1053        psString tmpStr = pmConfigConvertFilename(filename, (const pmConfig *) config, create, false);
    10541054        ok(NULL == tmpStr, "pmConfigConvertFilename() returned NULL with create==FALSE");
    10551055        create = true;
    1056         tmpStr = pmConfigConvertFilename(filename, (const pmConfig *) config, create);
     1056        tmpStr = pmConfigConvertFilename(filename, (const pmConfig *) config, create, false);
    10571057        ok(tmpStr != NULL, "pmConfigConvertFilename() returned non-NULL with create==TRUE");
    10581058        ok(!strcmp(tmpStr, "/JUNK"), "pmConfigConvertFilename() returned correct filename (%s)", tmpStr);
Note: See TracChangeset for help on using the changeset viewer.