IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 19, 2007, 5:31:39 PM (19 years ago)
Author:
jhoblitt
Message:

silence warnings

File:
1 edited

Legend:

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

    r12208 r12512  
    2020 *  @author  Eric Van Alst, MHPCC
    2121 *
    22  *  @version $Revision: 1.4 $  $Name: not supported by cvs2svn $
    23  *  @date  $Date: 2007-03-03 02:43:37 $
     22 *  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
     23 *  @date  $Date: 2007-03-20 03:31:39 $
    2424 *
    2525 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5656psS32 testNULLStrings(void);
    5757psS32 testStrCheck(void);
    58 
    59 static const char* const NullString = "";
    6058
    6159
     
    311309    diag("testStrAppend03");
    312310
    313     char *str=NULL;
    314     int result;
    315 
    316     str = psStringCopy(STR_0);
     311    char *str =psStringCopy(STR_0);
    317312
    318313    // test null-op
    319     psStringAppend(&str, NullString);
    320     result = strcmp(str, STR_0);
    321     ok ( result == 0, "Failed test point str=[%s]\n", str);
     314    psStringAppend(&str, "%s", "");
     315    ok_str(str, STR_0, "Failed test point");
    322316    psFree(str);
    323317
     
    391385
    392386    // test null-op
    393     psStringPrepend(&str, NullString);
     387    psStringPrepend(&str, "%s", "");
    394388    result = strcmp(str, STR_0);
    395389    ok ( result == 0, "test point str=[%s]\n", str);
     
    531525psS32 testNULLStrings(void)
    532526{
    533     diag("testNULLStrings");
     527    diag("test""s");
    534528
    535529    psString nullTest = NULL;
     
    550544
    551545    //psStringAppend should return 0 for NULL input destination
    552     outSize = psStringAppend(nullDest, NullString);
     546    outSize = psStringAppend(nullDest, "%s", "");
    553547    ok (outSize == 0,
    554548        "psStringAppend to return 0 for NULL input destination.\n");
Note: See TracChangeset for help on using the changeset viewer.