IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13799


Ignore:
Timestamp:
Jun 13, 2007, 1:32:11 PM (19 years ago)
Author:
Paul Price
Message:

NULL format is caught as a warning by the compiler --- tests removed.

File:
1 edited

Legend:

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

    r13084 r13799  
    2020 *  @author  Eric Van Alst, MHPCC
    2121 *
    22  *  @version $Revision: 1.9 $  $Name: not supported by cvs2svn $
    23  *  @date  $Date: 2007-05-01 00:08:52 $
     22 *  @version $Revision: 1.10 $  $Name: not supported by cvs2svn $
     23 *  @date  $Date: 2007-06-13 23:32:11 $
    2424 *
    2525 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3838    psLogSetFormat("HLNM");
    3939    psLogSetLevel(PS_LOG_INFO);
    40     plan_tests(72);
     40    plan_tests(68);
    4141
    4242
     
    200200    }
    201201
    202 
     202#if 0
    203203    // testStrAppend01()
    204204    {
     
    212212        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
    213213    }
    214 
     214#endif
    215215
    216216    // testStrAppend02()
     
    251251    }
    252252
    253 
     253#if 0
    254254    // testStrPrepend01()
    255255    {
     
    263263        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
    264264    }
    265 
     265#endif
    266266
    267267    // testStrPrepend02()
     
    376376        ok(!strncmp((psString)(strList->head->next->next->next->data), " to check", 10),
    377377             "psStringSplit to return expected strings");
    378    
     378
    379379        psFree(strList);
    380380        //Return correct psList output for string of zero length case
     
    410410        output = psStringCopy(nullTest);
    411411        ok(output == NULL, "psStringCopy to return NULL for NULL input string");
    412    
     412
    413413        //psStringNCopy should return NULL for NULL input string
    414414        output = psStringNCopy(nullTest, 100);
    415415        ok(output == NULL, "psStringNCopy to return NULL for NULL input string");
    416    
     416
    417417        //psStringAppend should return 0 for NULL input destination
    418418        outSize = psStringAppend(nullDest, "%s", "");
    419419        ok(outSize == 0, "psStringAppend to return 0 for NULL input destination");
    420    
     420
    421421        //psStringAppend should return 0 for NULL input format
    422422        outSize = psStringAppend(test, nullTest);
    423423        ok(outSize == 0, "psStringAppend to return 0 for NULL input format");
    424    
     424
    425425        //psStringPrepend should return 0 for NULL input destination
    426426        outSize = psStringPrepend(nullDest, " ");
    427427        ok(outSize == 0, "psStringPrepend to return 0 for NULL input destination");
    428    
     428
    429429        //psStringPrepend should return 0 for NULL input format
    430430        outSize = psStringPrepend(test, nullTest);
    431431        ok(outSize == 0, "psStringPrepend to return 0 for NULL input format");
    432    
     432
    433433        //psStringSplit should return empty list for NULL input string
    434434        psList *nullList = NULL;
     
    436436        ok(!psListLength(nullList), "psStringSplit to return NULL for NULL input string");
    437437        psFree(nullList);
    438    
     438
    439439        nullList = NULL;
    440440        //psStringSplit should return NULL for NULL input splitter
     
    454454        ok(psMemCheckType(PS_DATA_STRING, str), "psString allocated");
    455455        psFree(str);
    456    
     456
    457457        char charStr[10];
    458458        ok(!psMemCheckType(PS_DATA_STRING, charStr),
Note: See TracChangeset for help on using the changeset viewer.